mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-24 23:07:42 +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
37 lines
No EOL
1.1 KiB
Bash
Executable file
37 lines
No EOL
1.1 KiB
Bash
Executable file
#!/usr/bin/env 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
|
|
|
|
cd "$THIS_SCRIPT_PATH"
|
|
|
|
rm -f child?.* dep.*
|
|
|
|
echo "--- Full clean configure build install test build ---"
|
|
./build.sh clean configure build install test
|
|
if [ $(ls child?.* | wc -l) -ne 14 ]; then
|
|
echo unexpected output file count
|
|
exit 1
|
|
fi
|
|
|
|
echo "--- Test error result for child build ---"
|
|
./build.sh error && (echo should not have passed; exit 1) || (echo " ... build returned error as expected")
|
|
|
|
echo "--- Test building only specific actions and targets (install:child1 test:child2) ---"
|
|
./build.sh install:child1 test:child2
|
|
if [ $(ls child?.* | wc -l) -ne 2 ]; then
|
|
echo unexpected output file count
|
|
exit 1
|
|
fi
|
|
|
|
echo "--- Test that --no-deps is passed correctly to child scripts ---"
|
|
./build.sh --no-deps
|
|
if [ -f ./dep.configure ] || [ -f ./dep.build ]; then
|
|
echo unexpected dep.configure or dep.build file, should not have built this because of --no-deps flag
|
|
exit 1
|
|
fi |