mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25: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
42 lines
1.2 KiB
Bash
Executable file
42 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Build source packages suitable to import into the Debian package repos
|
|
# (https://salsa.debian.org/input-method-team)
|
|
|
|
# must be run from linux dir
|
|
|
|
# parameters: [PROJECT=<project>] [DIST=<dist>] [DEBREVISION=<no>] ./scripts/debian.sh
|
|
# PROJECT=<project> only process this project
|
|
# DIST=<dist> distribution to create packages for (unstable, experimental, etc). If not
|
|
# specified UNRELEASED will be used.
|
|
# DEBREVISION=<no> the debian revision number. Defaults to 1.
|
|
|
|
set -e
|
|
|
|
## START STANDARD BUILD SCRIPT INCLUDE
|
|
# adjust relative paths as necessary
|
|
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
|
|
. "${THIS_SCRIPT%/*}/../../resources/build/builder-basic.inc.sh"
|
|
## END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
. $(dirname "$THIS_SCRIPT")/package-build.inc.sh
|
|
|
|
checkPrerequisites
|
|
|
|
BASEDIR=$(pwd)
|
|
|
|
rm -rf debianpackage
|
|
mkdir -p debianpackage
|
|
|
|
for proj in ${projects}; do
|
|
downloadSource debianpackage
|
|
|
|
cd "${proj}-${version}"
|
|
if [[ -n "${DIST}" ]]; then
|
|
EXTRA_ARGS="--distribution ${DIST} --force-distribution"
|
|
fi
|
|
# shellcheck disable=SC2086
|
|
dch --newversion "${version}-${DEBREVISION-1}" ${EXTRA_ARGS} ""
|
|
debuild -d -S -sa -Zxz
|
|
cd "${BASEDIR}"
|
|
done
|