Changeset 7205


Ignore:
Timestamp:
Nov 30, 2008, 5:45:14 PM (13 years ago)
Author:
livings124
Message:

dirty fix to ensure the right svn number is grabbed

File:
1 edited

Legend:

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

    r7096 r7205  
    1111USERAGENT_PREFIX="1.40"
    1212
    13 SVN_REVISION=`find ./macosx ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
     13SVN_REVISION=`find ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
    1414              xargs grep "\$Id:" | \
    1515              grep -v third-party | \
    1616              cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
     17
     18#dirty fix to ensure the highest version number is found
     19SVN_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
     24if SVN_REVISION_MAC > SVN_REVISION; then
     25        SVN_REVISION = SVN_REVISION_MAC
     26fi
    1727 
    1828# Generate files to be included: only overwrite them if changed so make
Note: See TracChangeset for help on using the changeset viewer.