Skip to content

Commit

Permalink
chore: use tags to describe the build
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Aug 25, 2020
1 parent 7c74ca8 commit 0c5995b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/time-stamper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0c5995b

Please sign in to comment.