mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
(trunk) fix update-version-h.sh script issue on NetBSD, reported by stdisease, patched by geirha; thanks to both
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo "creating libtransmission/version.h"
|
echo "creating libtransmission/version.h"
|
||||||
|
|
||||||
user_agent_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep user_agent_prefix | cut -d , -f 6`
|
user_agent_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep user_agent_prefix | cut -d , -f 6`
|
||||||
@@ -8,7 +8,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=$(awk '/\$Id: /{ if ($4>i) i=$4 } END {print i}' */*.{cc,[chm]})
|
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