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