c4432337180febc71eb3add42eaf7d58268a865f
2 # generate new version.h
8 echo "usage: `basename $0` <major> <minor> [<extra>]"
22 now
=`TZ=UTC date "+%Y-%m-%d"`
24 commit
=`git rev-parse HEAD`
25 branch
=`git rev-parse --abbrev-ref HEAD`
31 #define VERSION_MAJOR ${maj}
32 #define VERSION_MINOR ${min}
33 #define VERSION_EXTRA_STR "${ext}"
34 #define VERSION_STR "${str}"
35 #define VERSION_DATE "${now}"
36 #define VERSION_COMMIT "${commit}"
37 #define VERSION_BRANCH "${branch}"