Browse Source

build-package: mv termux_error_exit to scripts/build/

android-5
Henrik Grimler 6 years ago
committed by Leonid Plyushch
parent
commit
7b0304b9f9
  1. 9
      build-package.sh
  2. 8
      scripts/build/termux_error_exit.sh
  3. 0
      scripts/build/termux_extract_dep_info.sh

9
build-package.sh

@ -4,14 +4,7 @@
set -e -o pipefail -u
# Utility function to log an error message and exit with an error code.
termux_error_exit() {
echo "ERROR: $*" 1>&2
exit 1
}
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi
source scripts/build/termux_error_exit.sh
# Utility function to download a resource with an expected checksum.
termux_download() {

8
scripts/build/termux_error_exit.sh

@ -0,0 +1,8 @@
termux_error_exit() {
echo "ERROR: $*" 1>&2
exit 1
}
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi

0
scripts/termux_extract_dep_info.sh → scripts/build/termux_extract_dep_info.sh

Loading…
Cancel
Save