1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

Tweaked version.sh (much faster on BeOS)

This commit is contained in:
Eric Petit 2006-10-28 16:51:28 +00:00
parent fb2d39c3d2
commit 4b1c435ee3

View file

@ -3,19 +3,14 @@
# $Id$ # $Id$
# Get current SVN revision from Ids in all source files # Get current SVN revision from Ids in all source files
REVMAX=0 REVMAX=`( find . '(' -name '*.[chm]' -o -name '*.cpp' -o -name '*.po' \
for pattern in '*.[chm]' '*.cpp' '*.po' '*.mk' '*.in' 'Makefile' 'configure'; do -o -name '*.mk' -o -name '*.in' -o -name 'Makefile' \
for f in `find . -name "$pattern"`; do -o -name 'configure' ')' -exec cat '{}' ';' ) | \
REV=`sed -e '/\$Id:/!d' -e \ sed -e '/\$Id:/!d' -e \
's/.*\$Id: [^ ]* \([0-9]*\) .*/\1/' \ 's/.*\$Id: [^ ]* \([0-9]*\) .*/\1/' |
$f` awk 'BEGIN { REV=0 }
if [ -n "$REV" ]; then // { if ( $1 > REV ) REV=$1 }
if [ "$REV" -gt "$REVMAX" ]; then END { print REV }'`
REVMAX="$REV"
fi
fi
done
done
# 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