Changeset 7781
- Timestamp:
- Jan 23, 2009, 2:42:58 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/macosx/version.sh
r7771 r7781 4 4 5 5 # convention: -TR MAJOR MINOR MAINT STATUS - (each a single char) 6 # STATUS: "X" for prerelease testbuilds,6 # STATUS: "X" for prerelease beta builds, 7 7 # "Z" for unsupported trunk builds, 8 8 # "0" for stable, supported releases … … 11 11 USERAGENT_PREFIX="1.50b3" 12 12 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`13 SVN_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 }'` 17 17 18 #dirty fix to ensure the highest version number is found when running release_builder.sh19 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 then26 SVN_REVISION=$SVN_REVISION_MAC27 fi28 29 18 # Generate files to be included: only overwrite them if changed so make 30 19 # won't rebuild everything unless necessary … … 50 39 EOF 51 40 52 # add a release definition41 # Add a release definition 53 42 if [ ${PEERID_PREFIX:6:1} = X ]; then 54 43 line='#define TR_BETA_RELEASE "BETA"' … … 57 46 else 58 47 line='#define TR_STABLE_RELEASE "STABLE"' 59 fi 48 fi 60 49 echo $line >> libtransmission/version.h.new 61 50
Note: See TracChangeset
for help on using the changeset viewer.