1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00

(trunk) another update-version-h.sh portability update, this time from geirha: "grep -o" isn't posix

This commit is contained in:
Charles Kerr 2009-06-01 01:01:24 +00:00
parent ee0771c751
commit 1fc15de22b

View file

@ -7,7 +7,7 @@ peer_id_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep peer_id_
if [ -d .svn ]; then
svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1`
else
svn_revision=`grep -oh '\$Id: [^ ]\+ [0-9]\+' */*\.cc */*\.[chm] | cut -d ' ' -f 3 | sort | tail -n 1 -`
svn_revision=`awk '/\$Id: /{ if ($4>i) i=$4 } END {print i}' */*.{cc,[chm]}`
fi
cat > libtransmission/version.h << EOF