From 0c5995bd72066c933ffdd2b2cdcde111a80f583d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 25 Aug 2020 21:15:08 +0200 Subject: [PATCH] chore: use tags to describe the build --- scripts/time-stamper.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/time-stamper.bash b/scripts/time-stamper.bash index 66c22c9e..0093707a 100755 --- a/scripts/time-stamper.bash +++ b/scripts/time-stamper.bash @@ -8,10 +8,10 @@ fi echo "#define FLAVOR $flavor" >$1 echo "#define BUILDNUM $build" >>$1 if git describe >/dev/null 2>/dev/null; then - gitver=$(git describe) - echo "#define BUILD \"$(git describe)-$flavor-speed47.build$build\"" >>$1 + gitver=$(git describe --tags --dirty) + echo "#define BUILD \"$gitver-$flavor-speed47.build$build\"" >>$1 else - echo "#define BUILD \"$flavor-speed47.build$build\"" >$1 + echo "#define BUILD \"$gitver-speed47.build$build\"" >$1 fi date=$(date +"%d.%m.%y (%A, %H:%M)") echo "#define BDATE \"$date\"" >>$1