File: reconf.sh

package info (click to toggle)
keyman 18.0.245-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,316 kB
  • sloc: python: 52,784; cpp: 21,278; sh: 7,633; ansic: 4,823; xml: 3,617; perl: 959; makefile: 139; javascript: 138
file content (47 lines) | stat: -rwxr-xr-x 1,376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/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/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE

BASEDIR="$KEYMAN_ROOT/linux"
echo "basedir is $BASEDIR"

echo "Found tier ${TIER}, version ${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/_VERSION_/${VERSION}/g" \
    -e "s/_VERSIONWITHTAG_/${VERSION_WITH_TAG}/g" \
    -e "s/_VERSIONGITTAG_/${VERSION_GIT_TAG}/g" \
    -e "s/_MAJORVERSION_/${VERSION_MAJOR}/g" \
    -e "s/_RELEASEVERSION_/${VERSION_RELEASE}/g" \
    -e "s/_TIER_/${TIER}/g" \
    -e "s/_ENVIRONMENT_/${VERSION_ENVIRONMENT}/g" \
    -e "s/_UPLOADSENTRY_/${UPLOAD_SENTRY}/g" \
    version.py.in > version.py
quilt refresh
quilt pop -a
cd ../buildtools && python3 ./build-langtags.py
cd "$BASEDIR"