mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by giving the scripts more appropriate names. Most build scripts should use builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh. Documented in resources/build/README.md. Renames: * resources/build/builder.inc.sh to resources/build/builder-full.inc.sh * resources/build/build-utils.sh to resources/build/builder-basic.inc.sh Other changes: * Moves Android-specific functions out of builder-basic.inc.sh and into android/build.sh. * Renames functions in builder-basic.inc.sh More functions may be moved from builder-basic.inc.sh into utils.inc.sh or other scripts in the future. Fixes: #14065 Build-bot: build all Test-bot: skip
61 lines
1.7 KiB
Bash
Executable file
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/builder-basic.inc.sh
|
|
. "${THIS_SCRIPT%/*}/../../resources/build/builder-basic.inc.sh"
|
|
## END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
# shellcheck source=linux/scripts/package-build.inc.sh
|
|
. "$(dirname "$THIS_SCRIPT")/package-build.inc.sh"
|
|
|
|
checkPrerequisites
|
|
|
|
if [ "${KEYMAN_TIER}" == "stable" ]; then
|
|
ppa="ppa:keymanapp/keyman"
|
|
elif [ "${KEYMAN_TIER}" == "beta" ]; then
|
|
ppa="ppa:keymanapp/keyman-beta"
|
|
else
|
|
ppa="ppa:keymanapp/keyman-alpha"
|
|
fi
|
|
echo "ppa: ${ppa}"
|
|
|
|
distributions="${DIST:-jammy noble plucky questing}"
|
|
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
|