All pastes #761081 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-04 16:30 UTC
rendered paste body
Index: macosx/version.sh
===================================================================
--- macosx/version.sh	(revision 3699)
+++ macosx/version.sh	(working copy)
@@ -9,10 +9,7 @@
 USERAGENT_PREFIX="0.91+"
 
 
-SVN_REVISION=`find ./ -name "*\.[ch]" -o -name "*\.cpp" -o -name "*\.po" | \
-              xargs grep "\$Id:" | \
-              grep -v third-party | \
-              cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
+SVN_REVISION=`svn info | awk '/Revision:/{print $2}'`
 
 if test "x${PEERID_PREFIX//Z/}" = "x$PEERID_PREFIX";
 then