mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +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
47 lines
1.5 KiB
Bash
Executable file
47 lines
1.5 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
## 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
|
|
|
|
BASEDIR="$KEYMAN_ROOT/linux"
|
|
echo "basedir is $BASEDIR"
|
|
|
|
echo "Found tier ${KEYMAN_TIER}, version ${KEYMAN_VERSION}"
|
|
|
|
# We need to configure+build core before we can configure ibus-keyman
|
|
cd ../core
|
|
./build.sh --no-tests clean:arch configure:arch build:arch
|
|
|
|
# Building ibus-keyman will also build dependency keyman-system-service
|
|
cd "$BASEDIR/ibus-keyman"
|
|
./build.sh clean configure
|
|
|
|
cd "$BASEDIR/keyman-config"
|
|
./build.sh clean
|
|
|
|
cd "$BASEDIR/keyman-config/keyman_config"
|
|
export QUILT_PATCHES="${BASEDIR}/debian/patches"
|
|
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
|
|
quilt push -a || true
|
|
quilt new version_py.diff
|
|
quilt add "version.py"
|
|
|
|
sed \
|
|
-e "s/__KEYMAN_VERSION__/${KEYMAN_VERSION}/g" \
|
|
-e "s/__KEYMAN_VERSION_WITH_TAG__/${KEYMAN_VERSION_WITH_TAG}/g" \
|
|
-e "s/__KEYMAN_VERSION_GIT_TAG__/${KEYMAN_VERSION_GIT_TAG}/g" \
|
|
-e "s/__KEYMAN_VERSION_MAJOR__/${KEYMAN_VERSION_MAJOR}/g" \
|
|
-e "s/__KEYMAN_VERSION_RELEASE__/${KEYMAN_VERSION_RELEASE}/g" \
|
|
-e "s/__KEYMAN_TIER__/${KEYMAN_TIER}/g" \
|
|
-e "s/__KEYMAN_VERSION_ENVIRONMENT__/${KEYMAN_VERSION_ENVIRONMENT}/g" \
|
|
-e "s/__UPLOAD_SENTRY__/${UPLOAD_SENTRY}/g" \
|
|
version.py.in > version.py
|
|
quilt refresh
|
|
quilt pop -a
|
|
cd ../buildtools && python3 ./build-langtags.py
|
|
cd "$BASEDIR"
|