From ab5f5c606817060fb2a3f740061d42ef20f622a7 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 4 Sep 2016 11:07:37 -0400 Subject: [PATCH] Setupt timestamp file at correct place --- build-package.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-package.sh b/build-package.sh index d9da82595..bca56189e 100755 --- a/build-package.sh +++ b/build-package.sh @@ -204,12 +204,6 @@ if [ $TERMUX_ELF_CLEANER_SRC -nt $TERMUX_ELF_CLEANER ]; then g++ -std=c++11 -Wall -Wextra -pedantic -Os $TERMUX_ELF_CLEANER_SRC -o $TERMUX_ELF_CLEANER fi -# Keep track of when build started so we can see what files have been created -export TERMUX_BUILD_TS_FILE=$TERMUX_PKG_TMPDIR/timestamp_$TERMUX_PKG_NAME -sleep 1 # Sleep so that any generated files above (such as zlib.c and $PREFIX/bin/sh) - #get older timestamp then TERMUX_BUILD_TS_FILE -rm -f $TERMUX_BUILD_TS_FILE && touch $TERMUX_BUILD_TS_FILE - # Run just after sourcing $TERMUX_PKG_BUILDER_SCRIPT termux_step_extract_package () { if [ -z "${TERMUX_PKG_SRCURL:=""}" ]; then @@ -730,6 +724,12 @@ Cflags: -I$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include HERE fi +# Keep track of when build started so we can see what files have been created. +# We start by sleeping so that any generated files above (such as zlib.pc) get +# an older timestamp than the TERMUX_BUILD_TS_FILE. +sleep 1 +TERMUX_BUILD_TS_FILE=$TERMUX_PKG_TMPDIR/timestamp_$TERMUX_PKG_NAME +touch $TERMUX_BUILD_TS_FILE # Start by extracting the package src into $TERMUX_PKG_SRCURL: termux_step_extract_package