Browse Source

build-package.sh: fix printing of error message when trying to run script on Android device

emacs-27
Leonid Plyushch 6 years ago
parent
commit
0c4fbc364e
  1. 4
      build-package.sh
  2. 4
      scripts/build/termux_error_exit.sh

4
build-package.sh

@ -3,6 +3,10 @@
set -e -o pipefail -u
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi
# Lock file to prevent parallel running in the same environment.
TERMUX_BUILD_LOCK_FILE="/tmp/.termux-build.lck"
if [ ! -e "$TERMUX_BUILD_LOCK_FILE" ]; then

4
scripts/build/termux_error_exit.sh

@ -2,7 +2,3 @@ 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

Loading…
Cancel
Save