aboutsummaryrefslogtreecommitdiffstats
path: root/generate_version_h.sh
blob: 1e90cede80b2d65254ba20fa169d8ad75897e508 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

VERSION=`git describe --abbrev=0`
HASH=`git show --format="%h" --no-patch master`


echo "#define VERSION \"$VERSION\""
echo "#define HASH \"$HASH\""
echo "#define VERSION_FULL VERSION\"-\"HASH"
echo "#define BUILDTIME \"`date -Isec`\""