[fish] better version

This commit is contained in:
Gwenhael Le Moine 2022-09-19 09:11:48 +02:00
parent 4e60d039f0
commit 0127923217
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -31,7 +31,7 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION