]> granicus.if.org Git - transmission/commitdiff
#1570 Streamlined macosx/version.sh
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 6 Dec 2008 15:06:59 +0000 (15:06 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 6 Dec 2008 15:06:59 +0000 (15:06 +0000)
NEWS
macosx/version.sh

diff --git a/NEWS b/NEWS
index 44241ea62b0e050bd93ba7a3e37d6fda4d0e9b91..fd5dd24329e60ed997bf035352aa576563fab2fc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
 
index 041744ac8f99bfc590ef99c438f4b7121747d213..44d42cb38eadb00d8f57a41ff41dfed6cc63d29e 100755 (executable)
 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`
+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 }'`
 
-#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
 # won't rebuild everything unless necessary
 replace_if_differs ()