Changeset 1661


Ignore:
Timestamp:
Apr 4, 2007, 8:37:14 PM (14 years ago)
Author:
livings124
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/version.sh

    r1075 r1661  
    55MAJOR=0
    66MINOR=6
     7MAINT=1
     8
     9# 0 for release, 1 otherwise
     10DEV=1
     11
    712STRING=0.7-svn
    813
     
    3035# Generate version.mk
    3136cat > mk/version.mk.new << EOF
    32 VERSION_MAJOR    = $MAJOR
    33 VERSION_MINOR    = $MINOR
    34 VERSION_STRING   = $STRING
    35 VERSION_REVISION = $REV
     37VERSION_MAJOR       = $MAJOR
     38VERSION_MINOR       = $MINOR
     39VERSION_MAINTENANCE = $MAINT
     40VERSION_DEV         = $DEV
     41VERSION_STRING      = $STRING
     42VERSION_REVISION    = $REV
    3643EOF
    3744replace_if_differs mk/version.mk.new mk/version.mk
     
    3946# Generate version.h
    4047cat > libtransmission/version.h.new << EOF
    41 #define VERSION_MAJOR    $MAJOR
    42 #define VERSION_MINOR    $MINOR
    43 #define VERSION_STRING   "$STRING"
    44 #define VERSION_REVISION $REV
     48#define VERSION_MAJOR       $MAJOR
     49#define VERSION_MINOR       $MINOR
     50#define VERSION_MAINTENANCE $MAINT
     51#define VERSION_DEV         $DEV
     52#define VERSION_STRING      "$STRING"
     53#define VERSION_REVISION    $REV
    4554EOF
    4655replace_if_differs libtransmission/version.h.new libtransmission/version.h
Note: See TracChangeset for help on using the changeset viewer.