From 537071c99f51387255045d43f54c02970f061418 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 27 Feb 2019 20:00:42 +0100 Subject: [PATCH] build-package: mv termux_step_finish_build to scripts/build/ --- build-package.sh | 8 +------- scripts/build/termux_step_finish_build.sh | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 scripts/build/termux_step_finish_build.sh diff --git a/build-package.sh b/build-package.sh index d8dac212d..18917fdbe 100755 --- a/build-package.sh +++ b/build-package.sh @@ -126,13 +126,7 @@ source scripts/build/termux_step_create_debfile.sh source scripts/build/termux_step_compare_debs.sh # Finish the build. Not to be overridden by package scripts. -termux_step_finish_build() { - echo "termux - build of '$TERMUX_PKG_NAME' done" - test -t 1 && printf "\033]0;%s - DONE\007" "$TERMUX_PKG_NAME" - mkdir -p /data/data/.built-packages - echo "$TERMUX_PKG_FULLVERSION" > "/data/data/.built-packages/$TERMUX_PKG_NAME" - exit 0 -} +source scripts/build/termux_step_finish_build.sh termux_step_handle_arguments "$@" termux_step_setup_variables diff --git a/scripts/build/termux_step_finish_build.sh b/scripts/build/termux_step_finish_build.sh new file mode 100644 index 000000000..b8528b897 --- /dev/null +++ b/scripts/build/termux_step_finish_build.sh @@ -0,0 +1,7 @@ +termux_step_finish_build() { + echo "termux - build of '$TERMUX_PKG_NAME' done" + test -t 1 && printf "\033]0;%s - DONE\007" "$TERMUX_PKG_NAME" + mkdir -p /data/data/.built-packages + echo "$TERMUX_PKG_FULLVERSION" > "/data/data/.built-packages/$TERMUX_PKG_NAME" + exit 0 +}