Browse Source

Use termux_error_exit

android-5
Fredrik Fornwall 8 years ago
parent
commit
6a3364bfc1
  1. 3
      disabled-packages/nodejs-current/build.sh
  2. 3
      packages/nodejs/build.sh
  3. 2
      packages/python2/build.sh

3
disabled-packages/nodejs-current/build.sh

@ -39,8 +39,7 @@ termux_step_configure () {
elif [ $TERMUX_ARCH = "x86_64" ]; then
DEST_CPU="x64"
else
echo "Unsupported arch: $TERMUX_ARCH"
exit 1
termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
fi
export GYP_DEFINES="host_os=linux"

3
packages/nodejs/build.sh

@ -37,8 +37,7 @@ termux_step_configure () {
elif [ $TERMUX_ARCH = "x86_64" ]; then
DEST_CPU="x64"
else
echo "Unsupported arch: $TERMUX_ARCH"
exit 1
termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
fi
# See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.

2
packages/python2/build.sh

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

Loading…
Cancel
Save