about summary refs log tree commit homepage
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
Diffstat (limited to 'GIT-VERSION-GEN')
-rwxr-xr-xGIT-VERSION-GEN9
1 files changed, 8 insertions, 1 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index 861c86f..72c921a 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v3.1.0.GIT
+DEF_VER=v3.2.0.GIT
+GVH=ext/sleepy_penguin/git_version.h
 
 LF='
 '
@@ -35,6 +36,12 @@ else
         VC=unset
 fi
 test "$VN" = "$VC" || {
+        {
+                echo '#ifndef MY_GIT_VERSION'
+                echo '#define MY_GIT_VERSION "'$VN'"'
+                echo '#endif /* MY_GIT_VERSION */'
+        } >$GVH.tmp.$$
+        mv $GVH.tmp.$$ $GVH
         echo >&2 "GIT_VERSION = $VN"
         echo "GIT_VERSION = $VN" >$GVF
 }