From: Fredrik Fornwall Date: Sun, 5 Mar 2017 02:30:38 +0000 (+0100) Subject: Use termux_error_exit in more cases X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/72f69cdc35d351db485f2021d9a98d4101e88bc8?hp=a0161a8d8b6400df65874dffb9d44b6e99ab6a53 Use termux_error_exit in more cases --- diff --git a/packages/git/build.sh b/packages/git/build.sh index db94a43e..de96545a 100755 --- a/packages/git/build.sh +++ b/packages/git/build.sh @@ -63,7 +63,6 @@ termux_step_post_make_install () { termux_step_post_massage () { if [ ! -f libexec/git-core/git-remote-https ]; then - echo "ERROR: Built without https support" - exit 1 + termux_error_exit "Git built without https support" fi } diff --git a/packages/libllvm/build.sh b/packages/libllvm/build.sh index e19378a8..dc3b9c1a 100644 --- a/packages/libllvm/build.sh +++ b/packages/libllvm/build.sh @@ -74,8 +74,7 @@ termux_step_pre_configure () { elif [ $TERMUX_ARCH = "x86_64" ]; then LLVM_TARGET_ARCH=X86 else - echo "Invalid arch: $TERMUX_ARCH" - exit 1 + termux_error_exit "Invalid arch: $TERMUX_ARCH" fi # see CMakeLists.txt and tools/clang/CMakeLists.txt TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_DEFAULT_TARGET_TRIPLE=$LLVM_DEFAULT_TARGET_TRIPLE" diff --git a/packages/picolisp/build.sh b/packages/picolisp/build.sh index edad5b71..82e04c7b 100644 --- a/packages/picolisp/build.sh +++ b/packages/picolisp/build.sh @@ -28,9 +28,7 @@ fi termux_step_pre_configure() { # Validate that we have the right version: grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || { - echo "ERROR: Picolisp version needs to be bumped" 1>&2 - grep Version src64/version.l 1>&2 - exit 1 + termux_error_exit "Picolisp version needs to be bumped" } if [ $TERMUX_ARCH_BITS = 64 ]; then diff --git a/packages/python/build.sh b/packages/python/build.sh index a28bc01f..c597d38f 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -77,8 +77,7 @@ termux_step_post_massage () { # Verify that desired modules have been included: for module in _ssl _bz2 zlib _curses _sqlite3 _lzma; do if [ ! -f lib/python${_MAJOR_VERSION}/lib-dynload/${module}.*.so ]; then - echo "ERROR: Python module library $module not built" - exit 1 + termux_error_exit "Python module library $module not built" fi done