mirror of
https://github.com/transmission/transmission
synced 2025-01-03 13:35:36 +00:00
(trunk) another update-version-h.sh portability update, this time from geirha: "grep -o" isn't posix
This commit is contained in:
parent
ee0771c751
commit
1fc15de22b
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ peer_id_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep peer_id_
|
||||||
if [ -d .svn ]; then
|
if [ -d .svn ]; then
|
||||||
svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1`
|
svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1`
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
cat > libtransmission/version.h << EOF
|
cat > libtransmission/version.h << EOF
|
||||||
|
|
Loading…
Reference in a new issue