diff options
author | PA4WDH | 2023-05-21 11:47:32 +0200 |
---|---|---|
committer | PA4WDH | 2023-05-21 11:47:32 +0200 |
commit | b5468b4acaec3794b0a3082ffe1ef27bd9d8cca3 (patch) | |
tree | 9cc699da0cce883dbeeba3c48849f13b1436eda4 /generate_version_h.sh | |
parent | Tidy up cpufreq.c (diff) | |
download | cputemp2maxfreq-b5468b4acaec3794b0a3082ffe1ef27bd9d8cca3.tar.gz cputemp2maxfreq-b5468b4acaec3794b0a3082ffe1ef27bd9d8cca3.tar.bz2 cputemp2maxfreq-b5468b4acaec3794b0a3082ffe1ef27bd9d8cca3.zip |
Fix all .h files
Diffstat (limited to 'generate_version_h.sh')
-rwxr-xr-x | generate_version_h.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generate_version_h.sh b/generate_version_h.sh index 75df5a2..4ea23c0 100755 --- a/generate_version_h.sh +++ b/generate_version_h.sh @@ -4,8 +4,13 @@ VERSION=`git describe --abbrev=0` HASH=`git show --format="%h" --no-patch master` BRANCH=`git rev-parse --abbrev-ref HEAD` +echo "#ifndef HAVE_VERSION_H" +echo "#define HAVE_VERSION_H" +echo "" echo "#define VERSION \"$VERSION\"" echo "#define HASH \"$HASH\"" echo "#define BRANCH \"$BRANCH\"" echo "#define VERSION_FULL VERSION\"-\"HASH\" (\"BRANCH\")\"" echo "char* version();" +echo "" +echo "#endif" |