#1570 Streamlined macosx/version.sh

This commit is contained in:
Mitchell Livingston 2008-12-06 15:06:59 +00:00
parent 31911bea10
commit 246dff73a4
2 changed files with 5 additions and 16 deletions

2
NEWS
View File

@ -8,7 +8,7 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
+ Support BitTorrent Enhancement Proposal #21 "Extension for Partial Seeds"
- Mac
+ Groups (moved to preferences) can have a default location when adding transfers
+ Bonjour support for web interface
+ Bonjour support for the web interface
- GTK+
+ Minor display improvements and HIG compliance

View File

@ -10,21 +10,10 @@
PEERID_PREFIX="-TR140Z-"
USERAGENT_PREFIX="1.40+"
SVN_REVISION=`find ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
xargs grep "\$Id:" | \
grep -v third-party | \
cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
#dirty fix to ensure the highest version number is found when running release_builder.sh
SVN_REVISION_MAC=`find ./macosx -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
xargs grep "\$Id:" | \
grep -v third-party | \
cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
if [ $SVN_REVISION_MAC -gt $SVN_REVISION ]
then
SVN_REVISION=$SVN_REVISION_MAC
fi
SVN_REVISION=`find -E ./libtransmission ./macosx \
-regex ".*\.([chmp]|cpp|po|sh)" \
-exec grep -oh '\$Id: [^ ]\+ [0-9]\+' {} + \
| awk '{ if ($3 > max) max = $3} END { print max }'`
# Generate files to be included: only overwrite them if changed so make
# won't rebuild everything unless necessary