add version info for maintenance number (z in x.y.z) and if dev build

This commit is contained in:
Mitchell Livingston 2007-04-04 20:37:14 +00:00
parent 14386befea
commit 74bd6755ba
1 changed files with 17 additions and 8 deletions

View File

@ -4,6 +4,11 @@
MAJOR=0
MINOR=6
MAINT=1
# 0 for release, 1 otherwise
DEV=1
STRING=0.7-svn
# Get current SVN revision from Ids in all source files
@ -29,19 +34,23 @@ replace_if_differs ()
# Generate version.mk
cat > mk/version.mk.new << EOF
VERSION_MAJOR = $MAJOR
VERSION_MINOR = $MINOR
VERSION_STRING = $STRING
VERSION_REVISION = $REV
VERSION_MAJOR = $MAJOR
VERSION_MINOR = $MINOR
VERSION_MAINTENANCE = $MAINT
VERSION_DEV = $DEV
VERSION_STRING = $STRING
VERSION_REVISION = $REV
EOF
replace_if_differs mk/version.mk.new mk/version.mk
# Generate version.h
cat > libtransmission/version.h.new << EOF
#define VERSION_MAJOR $MAJOR
#define VERSION_MINOR $MINOR
#define VERSION_STRING "$STRING"
#define VERSION_REVISION $REV
#define VERSION_MAJOR $MAJOR
#define VERSION_MINOR $MINOR
#define VERSION_MAINTENANCE $MAINT
#define VERSION_DEV $DEV
#define VERSION_STRING "$STRING"
#define VERSION_REVISION $REV
EOF
replace_if_differs libtransmission/version.h.new libtransmission/version.h