mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
add version info for maintenance number (z in x.y.z) and if dev build
This commit is contained in:
parent
14386befea
commit
74bd6755ba
1 changed files with 17 additions and 8 deletions
|
@ -4,6 +4,11 @@
|
||||||
|
|
||||||
MAJOR=0
|
MAJOR=0
|
||||||
MINOR=6
|
MINOR=6
|
||||||
|
MAINT=1
|
||||||
|
|
||||||
|
# 0 for release, 1 otherwise
|
||||||
|
DEV=1
|
||||||
|
|
||||||
STRING=0.7-svn
|
STRING=0.7-svn
|
||||||
|
|
||||||
# Get current SVN revision from Ids in all source files
|
# Get current SVN revision from Ids in all source files
|
||||||
|
@ -31,6 +36,8 @@ replace_if_differs ()
|
||||||
cat > mk/version.mk.new << EOF
|
cat > mk/version.mk.new << EOF
|
||||||
VERSION_MAJOR = $MAJOR
|
VERSION_MAJOR = $MAJOR
|
||||||
VERSION_MINOR = $MINOR
|
VERSION_MINOR = $MINOR
|
||||||
|
VERSION_MAINTENANCE = $MAINT
|
||||||
|
VERSION_DEV = $DEV
|
||||||
VERSION_STRING = $STRING
|
VERSION_STRING = $STRING
|
||||||
VERSION_REVISION = $REV
|
VERSION_REVISION = $REV
|
||||||
EOF
|
EOF
|
||||||
|
@ -40,6 +47,8 @@ replace_if_differs mk/version.mk.new mk/version.mk
|
||||||
cat > libtransmission/version.h.new << EOF
|
cat > libtransmission/version.h.new << EOF
|
||||||
#define VERSION_MAJOR $MAJOR
|
#define VERSION_MAJOR $MAJOR
|
||||||
#define VERSION_MINOR $MINOR
|
#define VERSION_MINOR $MINOR
|
||||||
|
#define VERSION_MAINTENANCE $MAINT
|
||||||
|
#define VERSION_DEV $DEV
|
||||||
#define VERSION_STRING "$STRING"
|
#define VERSION_STRING "$STRING"
|
||||||
#define VERSION_REVISION $REV
|
#define VERSION_REVISION $REV
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue