mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk) another update-version-h.sh portability update, this time from geirha: "grep -o" isn't posix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user