2 # generate new version.h
6 echo "usage: `basename $0` <major> <minor> [<extra>]"
10 maj
=`printf "%u" $1` || exit 1
11 min
=`printf "%u" $2` || exit 1
20 now
=`TZ=UTC date "+%Y-%m-%d"` || exit 1
26 #define VERSION_MAJOR ${maj}
27 #define VERSION_MINOR ${min}
28 #define VERSION_EXTRA_STR "${ext}"
29 #define VERSION_STR "${str}"
30 #define VERSION_DATE "${now}"