Browse Source

Use termux_error_exit in more cases

android-5
Fredrik Fornwall 8 years ago
parent
commit
72f69cdc35
  1. 3
      packages/git/build.sh
  2. 3
      packages/libllvm/build.sh
  3. 4
      packages/picolisp/build.sh
  4. 3
      packages/python/build.sh

3
packages/git/build.sh

@ -63,7 +63,6 @@ termux_step_post_make_install () {
termux_step_post_massage () { termux_step_post_massage () {
if [ ! -f libexec/git-core/git-remote-https ]; then if [ ! -f libexec/git-core/git-remote-https ]; then
echo "ERROR: Built without https support" termux_error_exit "Git built without https support"
exit 1
fi fi
} }

3
packages/libllvm/build.sh

@ -74,8 +74,7 @@ termux_step_pre_configure () {
elif [ $TERMUX_ARCH = "x86_64" ]; then elif [ $TERMUX_ARCH = "x86_64" ]; then
LLVM_TARGET_ARCH=X86 LLVM_TARGET_ARCH=X86
else else
echo "Invalid arch: $TERMUX_ARCH" termux_error_exit "Invalid arch: $TERMUX_ARCH"
exit 1
fi fi
# see CMakeLists.txt and tools/clang/CMakeLists.txt # see CMakeLists.txt and tools/clang/CMakeLists.txt
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_DEFAULT_TARGET_TRIPLE=$LLVM_DEFAULT_TARGET_TRIPLE" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_DEFAULT_TARGET_TRIPLE=$LLVM_DEFAULT_TARGET_TRIPLE"

4
packages/picolisp/build.sh

@ -28,9 +28,7 @@ fi
termux_step_pre_configure() { termux_step_pre_configure() {
# Validate that we have the right version: # Validate that we have the right version:
grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || { grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || {
echo "ERROR: Picolisp version needs to be bumped" 1>&2 termux_error_exit "Picolisp version needs to be bumped"
grep Version src64/version.l 1>&2
exit 1
} }
if [ $TERMUX_ARCH_BITS = 64 ]; then if [ $TERMUX_ARCH_BITS = 64 ]; then

3
packages/python/build.sh

@ -77,8 +77,7 @@ termux_step_post_massage () {
# Verify that desired modules have been included: # Verify that desired modules have been included:
for module in _ssl _bz2 zlib _curses _sqlite3 _lzma; do for module in _ssl _bz2 zlib _curses _sqlite3 _lzma; do
if [ ! -f lib/python${_MAJOR_VERSION}/lib-dynload/${module}.*.so ]; then if [ ! -f lib/python${_MAJOR_VERSION}/lib-dynload/${module}.*.so ]; then
echo "ERROR: Python module library $module not built" termux_error_exit "Python module library $module not built"
exit 1
fi fi
done done

Loading…
Cancel
Save