spiegel-keyman/linux/scripts/launchpad.sh
Eberhard Beilharz 46d67d944e
chore(linux): Re-enable building for Ubuntu 23.10 Mantic
Now that we have updated ibus packages in place we can re-enable building
for Mantic.

Fixes #9520 and #9398.
2023-10-17 18:48:53 +02:00

61 lines
1.7 KiB
Bash
Executable file

#!/bin/bash
# Build source packages from nightly builds and upload to PPA
# must be run from linux dir
# parameters: [UPLOAD="yes"] [PROJECT="<project>"] [DIST="<dist>"] [PACKAGEVERSION="<version>"] ./scripts/launchpad.sh
# UPLOAD="yes" do the dput for real
# PROJECT="<project>" only upload this project
# DIST="<dist>" only upload for this distribution
# PACKAGEVERSION="<version>" string to append to the package version. Default to "1~sil1"
set -eu
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
# shellcheck source=resources/build/build-utils.sh
. "${THIS_SCRIPT%/*}/../../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
# shellcheck source=linux/scripts/package-build.inc.sh
. "$(dirname "$THIS_SCRIPT")/package-build.inc.sh"
checkPrerequisites
if [ "${TIER}" == "stable" ]; then
ppa="ppa:keymanapp/keyman"
elif [ "${TIER}" == "beta" ]; then
ppa="ppa:keymanapp/keyman-beta"
else
ppa="ppa:keymanapp/keyman-alpha"
fi
echo "ppa: ${ppa}"
distributions="${DIST:-focal jammy lunar mantic}"
packageversion="${PACKAGEVERSION:-1~sil1}"
BASEDIR=$(pwd)
rm -rf launchpad
mkdir -p launchpad
for proj in ${projects:-}; do
downloadSource launchpad
cd "${proj}-${version:-}"
pwd
cp debian/changelog "../${proj}-changelog"
for dist in ${distributions}; do
cp "../${proj}-changelog" debian/changelog
dch -v "${version}-${packageversion}~${dist}" "source package for PPA"
dch -D "${dist}" -r ""
debuild -d -S -sa -Zxz
done
cd ..
for dist in ${distributions}; do
dput ${SIM} ${ppa} "${proj}_${version}-${packageversion}~${dist}_source.changes"
done
cd "${BASEDIR}"
done