Changeset 7781


Ignore:
Timestamp:
Jan 23, 2009, 2:42:58 AM (12 years ago)
Author:
livings124
Message:

use trunk's version script in 1.5x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/macosx/version.sh

    r7771 r7781  
    44
    55# convention: -TR MAJOR MINOR MAINT STATUS - (each a single char)
    6 # STATUS: "X" for prerelease test builds,
     6# STATUS: "X" for prerelease beta builds,
    77#         "Z" for unsupported trunk builds,
    88#         "0" for stable, supported releases
     
    1111USERAGENT_PREFIX="1.50b3"
    1212
    13 SVN_REVISION=`find ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
    14               xargs grep "\$Id:" | \
    15               grep -v third-party | \
    16               cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
     13SVN_REVISION=`find -E ./libtransmission ./macosx                    \
     14                  -regex ".*\.([chmp]|cpp|po|sh)"                    \
     15                  -exec grep -oh '\$Id: [^ ]\+ [0-9]\+' {} +        \
     16                  | awk '{ if ($3 > max) max = $3} END { print max }'`
    1717
    18 #dirty fix to ensure the highest version number is found when running release_builder.sh
    19 SVN_REVISION_MAC=`find ./macosx -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
    20               xargs grep "\$Id:" | \
    21               grep -v third-party | \
    22               cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
    23 
    24 if [ $SVN_REVISION_MAC -gt $SVN_REVISION ]
    25 then
    26         SVN_REVISION=$SVN_REVISION_MAC
    27 fi
    28  
    2918# Generate files to be included: only overwrite them if changed so make
    3019# won't rebuild everything unless necessary
     
    5039EOF
    5140
    52 # add a release definition
     41# Add a release definition
    5342if [ ${PEERID_PREFIX:6:1} = X ]; then
    5443    line='#define TR_BETA_RELEASE     "BETA"'
     
    5746else
    5847    line='#define TR_STABLE_RELEASE   "STABLE"'
    59 fi 
     48fi
    6049echo $line >> libtransmission/version.h.new
    6150
Note: See TracChangeset for help on using the changeset viewer.