From 71430aa64e5287398bc8e3bd563eb9b7ecb9c493 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 22 Jan 2017 23:06:48 +0100 Subject: [PATCH] Use the termux_error_exit shell function --- packages/ffmpeg/build.sh | 3 +-- packages/libvpx/build.sh | 3 +-- packages/picolisp/build.sh | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/ffmpeg/build.sh b/packages/ffmpeg/build.sh index 8d007a9ff..99c184343 100644 --- a/packages/ffmpeg/build.sh +++ b/packages/ffmpeg/build.sh @@ -30,8 +30,7 @@ termux_step_configure () { _ARCH=$TERMUX_ARCH _EXTRA_CONFIGURE_FLAGS="--enable-neon" else - echo "Unsupported arch $TERMUX_ARCH" - exit 1 + termux_error_exit "Unsupported arch: $TERMUX_ARCH" fi # --disable-lzma to avoid problem with shared library clashes, see diff --git a/packages/libvpx/build.sh b/packages/libvpx/build.sh index 4bd4a7939..1e9b45a29 100644 --- a/packages/libvpx/build.sh +++ b/packages/libvpx/build.sh @@ -22,8 +22,7 @@ termux_step_configure () { export LD=$CC _CONFIGURE_TARGET="--target=x86_64-android-gcc" else - echo "Unsupported arch: $TERMUX_ARCH" - exit 1 + termux_error_exit "Unsupported arch: $TERMUX_ARCH" fi # For --disable-realtime-only, see diff --git a/packages/picolisp/build.sh b/packages/picolisp/build.sh index 75d8324a9..ce834241e 100644 --- a/packages/picolisp/build.sh +++ b/packages/picolisp/build.sh @@ -32,8 +32,7 @@ termux_step_pre_configure() { elif [ $TERMUX_ARCH = "x86_64" ]; then export TERMUX_PKG_EXTRA_MAKE_ARGS=x86-64.linux else - echo "Error: Unsupported arch: $TERMUX_ARCH" - exit 1 + termux_error_exit "Unsupported arch: $TERMUX_ARCH" fi TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src64 else