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