#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" + Support BitTorrent Enhancement Proposal #21 "Extension for Partial Seeds"
- Mac - Mac
+ Groups (moved to preferences) can have a default location when adding transfers + Groups (moved to preferences) can have a default location when adding transfers
+ Bonjour support for web interface + Bonjour support for the web interface
- GTK+ - GTK+
+ Minor display improvements and HIG compliance + Minor display improvements and HIG compliance

View File

@ -10,22 +10,11 @@
PEERID_PREFIX="-TR140Z-" PEERID_PREFIX="-TR140Z-"
USERAGENT_PREFIX="1.40+" USERAGENT_PREFIX="1.40+"
SVN_REVISION=`find ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \ SVN_REVISION=`find -E ./libtransmission ./macosx \
xargs grep "\$Id:" | \ -regex ".*\.([chmp]|cpp|po|sh)" \
grep -v third-party | \ -exec grep -oh '\$Id: [^ ]\+ [0-9]\+' {} + \
cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1` | awk '{ if ($3 > max) max = $3} END { print max }'`
#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
# Generate files to be included: only overwrite them if changed so make # Generate files to be included: only overwrite them if changed so make
# won't rebuild everything unless necessary # won't rebuild everything unless necessary
replace_if_differs () replace_if_differs ()