Store commit hash and handle prerelease vor all automation tools.

This commit is contained in:
chriseth
2016-08-26 10:14:44 +02:00
parent 54ab787b83
commit 4588eda622
4 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -56,13 +56,13 @@ commithash=`git rev-parse --short HEAD`
committimestamp=`git show --format=%ci HEAD | head -n 1`
commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10`
# TODO store the commit hash in a file so that the build info mechanism can pick it up even without git
echo "$commithash" > commit_hash.txt
if [ $branch = develop ]
then
debversion="$version-nightly-$commitdate-$commithash"
else
debversion="$version"
echo -n > prerelease.txt # proper release
fi
# gzip will create different tars all the time and we are not allowed