mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
trunk: dirty fix to ensure the right svn number is grabbed
This commit is contained in:
parent
f0571fe25d
commit
3fe04a34cc
1 changed files with 13 additions and 3 deletions
|
@ -7,13 +7,23 @@
|
|||
# "Z" for unsupported trunk builds,
|
||||
# "0" for stable, supported releases
|
||||
# these should be the only two lines you need to change
|
||||
PEERID_PREFIX="-TR140Z-"
|
||||
USERAGENT_PREFIX="1.40+"
|
||||
PEERID_PREFIX="-TR1400-"
|
||||
USERAGENT_PREFIX="1.40"
|
||||
|
||||
SVN_REVISION=`find ./macosx ./libtransmission -name "*\.[chmp]" -o -name "*\.cpp" -o -name "*\.po" -o -name "*\.sh" | \
|
||||
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 > 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
|
||||
|
|
Loading…
Reference in a new issue