summaryrefslogtreecommitdiffstats
path: root/source/l/libusbmuxd/fetch-libusbmuxd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/libusbmuxd/fetch-libusbmuxd.sh')
-rwxr-xr-xsource/l/libusbmuxd/fetch-libusbmuxd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/l/libusbmuxd/fetch-libusbmuxd.sh b/source/l/libusbmuxd/fetch-libusbmuxd.sh
index 1fde09b9a..ae703b7cb 100755
--- a/source/l/libusbmuxd/fetch-libusbmuxd.sh
+++ b/source/l/libusbmuxd/fetch-libusbmuxd.sh
@@ -36,12 +36,14 @@ git clone https://github.com/libimobiledevice/libusbmuxd
HEADISAT="$( cd libusbmuxd && git log -1 --format=%h )"
DATE="$( cd libusbmuxd && git log -1 --format=%ad --date=format:%Y%m%d )"
+LONGDATE="$( cd libusbmuxd && git log -1 --date=format:%c | grep Date: | cut -f 2- -d : )"
# Cleanup. We're not packing up the whole git repo.
( cd libusbmuxd && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null )
mv libusbmuxd libusbmuxd-${DATE}_${HEADISAT}
tar cf libusbmuxd-${DATE}_${HEADISAT}.tar libusbmuxd-${DATE}_${HEADISAT}
xz -9 -f libusbmuxd-${DATE}_${HEADISAT}.tar
rm -rf libusbmuxd-${DATE}_${HEADISAT}
+touch -d "$LONGDATE" libusbmuxd-${DATE}_${HEADISAT}.tar.xz
echo
echo "libusbmuxd branch $BRANCH with HEAD at $HEADISAT packaged as libusbmuxd-${DATE}_${HEADISAT}.tar.xz"
echo