Codechange: Include flag for whether a build is of a tagged revision

This commit is contained in:
Niels Martin Hansen
2019-02-10 18:01:30 +01:00
committed by Charles Pigott
parent 412e6132b6
commit 46d97239c4
5 changed files with 30 additions and 10 deletions

View File

@@ -82,8 +82,10 @@ if [ -d "$ROOT_DIR/.git" ]; then
if [ -n "$TAG" ]; then
VERSION="${TAG}"
ISTAG="1"
else
VERSION="${ISODATE}-${BRANCH}${hashprefix}${SHORTHASH}"
ISTAG="0"
fi
elif [ -f "$ROOT_DIR/.ottdrev" ]; then
@@ -99,6 +101,7 @@ else
ISODATE=""
TAG=""
VERSION=""
ISTAG="0"
fi
echo "$VERSION $ISODATE $MODIFIED $HASH"
echo "$VERSION $ISODATE $MODIFIED $HASH $ISTAG"