diff --git a/scripts/build/termux_download.sh b/scripts/build/termux_download.sh index 7414a167b3..24a601150e 100755 --- a/scripts/build/termux_download.sh +++ b/scripts/build/termux_download.sh @@ -1,3 +1,5 @@ +#!/usr/bin/bash + termux_download() { if [ $# != 3 ]; then termux_error_exit "termux_download(): Invalid arguments - expected \$URL \$DESTINATION \$CHECKSUM" diff --git a/scripts/build/termux_download_deb_pac.sh b/scripts/build/termux_download_deb_pac.sh index 28f7c66a78..3e864389cd 100755 --- a/scripts/build/termux_download_deb_pac.sh +++ b/scripts/build/termux_download_deb_pac.sh @@ -1,3 +1,5 @@ +#!/usr/bin/bash + termux_download_deb_pac() { local PACKAGE=$1 local PACKAGE_ARCH=$2 diff --git a/scripts/build/termux_extract_dep_info.sh b/scripts/build/termux_extract_dep_info.sh index 5cc469bfd0..5883c81eec 100755 --- a/scripts/build/termux_extract_dep_info.sh +++ b/scripts/build/termux_extract_dep_info.sh @@ -1,3 +1,5 @@ +#!/usr/bin/bash + termux_extract_dep_info() { PKG=$1 PKG_DIR=$2 diff --git a/scripts/build/termux_step_massage.sh b/scripts/build/termux_step_massage.sh index eae4be1c88..a21d8af4f2 100644 --- a/scripts/build/termux_step_massage.sh +++ b/scripts/build/termux_step_massage.sh @@ -69,8 +69,10 @@ termux_step_massage() { # Check so files were actually installed. Exclude # share/doc/$TERMUX_PKG_NAME/ as a license file is always # installed there. - if [ "$(find . -type f -not -path "./share/doc/$TERMUX_PKG_NAME/*")" = "" ]; then - termux_error_exit "No files in package. Maybe you need to run autoreconf -fi before configuring?" + if [ "$(find . -type f -not -path "./share/doc/$TERMUX_PKG_NAME/*")" = "" ] && [ -f "$TERMUX_PKG_SRCDIR"/configure.ac ] || [ -f "$TERMUX_PKG_SRCDIR"/configure.in ]; then + termux_error_exit "No files in package. Maybe you need to run autoreconf -fi before configuring." + elif [ "$(find . -type f -not -path "./share/doc/$TERMUX_PKG_NAME/*")" = "" ]; then + termux_error_exit "No files in package." fi local HARDLINKS