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