summaryrefslogtreecommitdiffstats
path: root/source/x/x11/src/get-xf86-video-nouveau.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/src/get-xf86-video-nouveau.sh')
-rwxr-xr-xsource/x/x11/src/get-xf86-video-nouveau.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/x/x11/src/get-xf86-video-nouveau.sh b/source/x/x11/src/get-xf86-video-nouveau.sh
index 01899302..b0c6f999 100755
--- a/source/x/x11/src/get-xf86-video-nouveau.sh
+++ b/source/x/x11/src/get-xf86-video-nouveau.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2016 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -36,12 +36,14 @@ git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/
HEADISAT="$( cd xf86-video-nouveau && git log -1 --format=%h )"
DATE="$( cd xf86-video-nouveau && git log -1 --format=%ad --date=format:%Y%m%d )"
+LONGDATE="$( cd xf86-video-nouveau && git log -1 --format=%ad --date=format:%c )"
# Cleanup. We're not packing up the whole git repo.
( cd xf86-video-nouveau && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null )
mv xf86-video-nouveau xf86-video-nouveau-${DATE}_${HEADISAT}
tar cf xf86-video-nouveau-${DATE}_${HEADISAT}.tar xf86-video-nouveau-${DATE}_${HEADISAT}
xz -9 -f xf86-video-nouveau-${DATE}_${HEADISAT}.tar
rm -rf xf86-video-nouveau-${DATE}_${HEADISAT}
+touch -d "$LONGDATE" xf86-video-nouveau-${DATE}_${HEADISAT}.tar.xz
echo
echo "xf86-video-nouveau branch $BRANCH with HEAD at $HEADISAT packaged as xf86-video-nouveau-${DATE}_${HEADISAT}.tar.xz"
echo