From 38d3f2237770415b72ae5862f97c7d1e52c44f67 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 27 Feb 2019 19:39:41 +0100 Subject: [PATCH] build-package: mv termux_step_replace_guess_scripts to scripts/build --- build-package.sh | 6 +----- scripts/build/termux_step_replace_guess_scripts.sh | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 scripts/build/termux_step_replace_guess_scripts.sh diff --git a/build-package.sh b/build-package.sh index 86b191bff..41fbc7133 100755 --- a/build-package.sh +++ b/build-package.sh @@ -68,11 +68,7 @@ source scripts/build/termux_step_setup_toolchain.sh source scripts/build/termux_step_patch_package.sh # Replace autotools build-aux/config.{sub,guess} with ours to add android targets. -termux_step_replace_guess_scripts() { - cd "$TERMUX_PKG_SRCDIR" - find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \; - find . -name config.guess -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.guess" '{}' \; -} +source scripts/build/termux_step_replace_guess_scripts.sh # For package scripts to override. Called in $TERMUX_PKG_BUILDDIR. termux_step_pre_configure() { diff --git a/scripts/build/termux_step_replace_guess_scripts.sh b/scripts/build/termux_step_replace_guess_scripts.sh new file mode 100644 index 000000000..0f5f73127 --- /dev/null +++ b/scripts/build/termux_step_replace_guess_scripts.sh @@ -0,0 +1,5 @@ +termux_step_replace_guess_scripts() { + cd "$TERMUX_PKG_SRCDIR" + find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \; + find . -name config.guess -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.guess" '{}' \; +}