diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2021-11-26 19:33:57 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-11-27 08:59:56 +0100 |
commit | f4d494c6353445d78c69731100728ac60a222cdb (patch) | |
tree | ae0cd2b13145be601e0a051ff3b3f8b1ffa7c034 /source/ap/ksh93/fetch-ksh.sh | |
parent | 7a10b39e8f036460e7ea52ed953ac0fa75a76cd4 (diff) | |
download | current-f4d494c6353445d78c69731100728ac60a222cdb.tar.gz |
Fri Nov 26 19:33:57 UTC 202120211126193357
ap/ksh93-1.0_20211125_84ded2d-x86_64-1.txz: Upgraded.
d/git-2.34.1-x86_64-1.txz: Upgraded.
l/harfbuzz-3.1.2-x86_64-1.txz: Upgraded.
l/libexif-0.6.24-x86_64-1.txz: Upgraded.
l/libsoup-2.74.2-x86_64-1.txz: Upgraded.
l/python-charset-normalizer-2.0.8-x86_64-1.txz: Upgraded.
n/ModemManager-1.18.4-x86_64-1.txz: Upgraded.
n/gnupg2-2.2.33-x86_64-1.txz: Upgraded.
x/mesa-21.2.6-x86_64-1.txz: Upgraded.
xfce/mousepad-0.5.8-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/ap/ksh93/fetch-ksh.sh')
-rwxr-xr-x | source/ap/ksh93/fetch-ksh.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/ap/ksh93/fetch-ksh.sh b/source/ap/ksh93/fetch-ksh.sh index 956c7069..626434b7 100755 --- a/source/ap/ksh93/fetch-ksh.sh +++ b/source/ap/ksh93/fetch-ksh.sh @@ -33,13 +33,16 @@ rm -rf ksh git clone -b "$BRANCH" https://github.com/ksh93/ksh HEADISAT=$( cd ksh && git log -1 --format=%h ) +DATE="$( cd ksh && git log -1 --format=%cd --date=format:%Y%m%d )" +LONGDATE="$( cd ksh && git log -1 --format=%cd --date=format:%c )" VERSION=$(sed -n '/^#define SH_RELEASE_SVER/ { s/.*"\(.*\)".*/\1/; s/-/_/g; p; }' ksh/src/cmd/ksh93/include/version.h) # Cleanup. We're not packing up the whole git repo. rm -rf ksh/.git* -mv ksh "ksh-${BRANCH}_${HEADISAT}" -tar cf "ksh-${BRANCH}_${HEADISAT}.tar" "ksh-${BRANCH}_${HEADISAT}" -plzip -9 -n 6 -f "ksh-${BRANCH}_${HEADISAT}.tar" -rm -rf "ksh-${BRANCH}_${HEADISAT}" +mv ksh "ksh-${BRANCH}_${DATE}_${HEADISAT}" +tar cf "ksh-${BRANCH}_${DATE}_${HEADISAT}.tar" "ksh-${BRANCH}_${DATE}_${HEADISAT}" +plzip -9 -n 6 -f "ksh-${BRANCH}_${DATE}_${HEADISAT}.tar" +touch -d "$LONGDATE" ksh-${BRANCH}_${DATE}_${HEADISAT}.tar.lz +rm -rf "ksh-${BRANCH}_${DATE}_${HEADISAT}" echo -echo "ksh branch $BRANCH with HEAD at $HEADISAT packaged as ksh-${BRANCH}_${HEADISAT}.tar.lz" +echo "ksh branch $BRANCH with HEAD at $HEADISAT packaged as ksh-${BRANCH}_${DATE}_${HEADISAT}.tar.lz" echo |