aboutsummaryrefslogtreecommitdiffstats
path: root/generate_version_h.sh
diff options
context:
space:
mode:
authorPA4WDH2023-05-21 10:36:23 +0200
committerPA4WDH2023-05-21 10:36:23 +0200
commitf00edf85c4e447ca602f305d2a4fa395e62f1360 (patch)
tree2d5ee49de6e26788faaea96bb184bc8eee613b1d /generate_version_h.sh
parentAdd automatic versioning (diff)
downloadcputemp2maxfreq-f00edf85c4e447ca602f305d2a4fa395e62f1360.tar.gz
cputemp2maxfreq-f00edf85c4e447ca602f305d2a4fa395e62f1360.tar.bz2
cputemp2maxfreq-f00edf85c4e447ca602f305d2a4fa395e62f1360.zip
Remove buildtime from version.h, add branch
Diffstat (limited to 'generate_version_h.sh')
-rwxr-xr-xgenerate_version_h.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/generate_version_h.sh b/generate_version_h.sh
index 1e90ced..fed5fa0 100755
--- a/generate_version_h.sh
+++ b/generate_version_h.sh
@@ -2,9 +2,9 @@
VERSION=`git describe --abbrev=0`
HASH=`git show --format="%h" --no-patch master`
-
+BRANCH=`git rev-parse --abbrev-ref HEAD`
echo "#define VERSION \"$VERSION\""
echo "#define HASH \"$HASH\""
-echo "#define VERSION_FULL VERSION\"-\"HASH"
-echo "#define BUILDTIME \"`date -Isec`\""
+echo "#define BRANCH \"$BRANCH\""
+echo "#define VERSION_FULL VERSION\"-\"HASH\" (\"BRANCH\")\""