mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +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
25
version.sh
25
version.sh
|
@ -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
|
||||||
|
@ -29,19 +34,23 @@ replace_if_differs ()
|
||||||
|
|
||||||
# Generate version.mk
|
# Generate version.mk
|
||||||
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_STRING = $STRING
|
VERSION_MAINTENANCE = $MAINT
|
||||||
VERSION_REVISION = $REV
|
VERSION_DEV = $DEV
|
||||||
|
VERSION_STRING = $STRING
|
||||||
|
VERSION_REVISION = $REV
|
||||||
EOF
|
EOF
|
||||||
replace_if_differs mk/version.mk.new mk/version.mk
|
replace_if_differs mk/version.mk.new mk/version.mk
|
||||||
|
|
||||||
# Generate version.h
|
# Generate version.h
|
||||||
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_STRING "$STRING"
|
#define VERSION_MAINTENANCE $MAINT
|
||||||
#define VERSION_REVISION $REV
|
#define VERSION_DEV $DEV
|
||||||
|
#define VERSION_STRING "$STRING"
|
||||||
|
#define VERSION_REVISION $REV
|
||||||
EOF
|
EOF
|
||||||
replace_if_differs libtransmission/version.h.new libtransmission/version.h
|
replace_if_differs libtransmission/version.h.new libtransmission/version.h
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue