mirror of
https://github.com/transmission/transmission
synced 2025-01-03 13:35:36 +00:00
(trunk) tweak r8572.
This commit is contained in:
parent
0834c33445
commit
dfa28975dd
2 changed files with 2 additions and 13 deletions
|
@ -22,7 +22,7 @@ then
|
|||
fi
|
||||
export LIBTOOLIZE
|
||||
|
||||
update-version-h.sh
|
||||
./update-version-h.sh
|
||||
|
||||
autoreconf -fi -I m4
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ else
|
|||
svn_revision=`grep -oh '\$Id: [^ ]\+ [0-9]\+' */*\.cc */*\.cpp */*\.[chm] | cut -d ' ' -f 3 | sort | tail -n 1 -`
|
||||
fi
|
||||
|
||||
cat > libtransmission/version.h.new << EOF
|
||||
cat > libtransmission/version.h << EOF
|
||||
#define PEERID_PREFIX "${peer_id_prefix}"
|
||||
#define USERAGENT_PREFIX "${user_agent_prefix}"
|
||||
#define SVN_REVISION "${svn_revision}"
|
||||
|
@ -16,14 +16,3 @@ cat > libtransmission/version.h.new << EOF
|
|||
#define SHORT_VERSION_STRING "${user_agent_prefix}"
|
||||
#define LONG_VERSION_STRING "${user_agent_prefix} (${svn_revision})"
|
||||
EOF
|
||||
|
||||
cmp -s libtransmission/version.h.new libtransmission/version.h
|
||||
cat libtransmission/version.h.new
|
||||
if [ $? -eq 0 ] # test exit status of "cmp" command.
|
||||
then
|
||||
echo "no update needed to version.h"
|
||||
rm libtransmission/version.h.new
|
||||
else
|
||||
echo "updated version.h"
|
||||
mv libtransmission/version.h.new libtransmission/version.h
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue