From a84f62f95abe203970efe15c25cf9f74328d0efc Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 14:05:30 +0100 Subject: fixed date formatting --- xibuild.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'xibuild.sh') diff --git a/xibuild.sh b/xibuild.sh index ba8b425..6c1b4eb 100644 --- a/xibuild.sh +++ b/xibuild.sh @@ -149,7 +149,12 @@ xibuild_strip () { strip --strip-unneeded $file 2>&1 - ldd $file 2>/dev/null | grep "=>" | cut -d"=>" -f2 | awk '{ print $1 }' | xargs xi -r $root -q file >> $out_dir/$pkgname.deps + { + [ "$root" = "/" ] \ + && ldd $file \ + || xichroot "$root" ldd "${file#$root}" + } 2>>$logfile | grep "=>" | cut -d"=>" -f2 | awk '{ print $1 }' \ + | xargs xi -r $root -q file 2>>$logfile >> $out_dir/$pkgname.deps done done @@ -204,7 +209,7 @@ xibuild_describe () { echo "VERSION=$pkg_ver" echo "REVISION=$(cat ${buildfile%/*}/*.xibuild | sha512sum | cut -d' ' -f1)" echo "SOURCE=$SOURCE" - echo "DATE=$(stat -t $xipkg | cut -d' ' -f13 | xargs date -d)" + echo "DATE=$(date -d @$(stat -t $xipkg | cut -d' ' -f13))" echo "DEPS=${deps}" echo "MAKE_DEPS=${MAKE_DEPS} ${DEPS}" echo "ORIGIN=$NAME" -- cgit v1.2.1