From dfa28975dd3ca084af2465461118507695cf386d Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 31 May 2009 20:25:37 +0000 Subject: [PATCH] (trunk) tweak r8572. --- autogen.sh | 2 +- update-version-h.sh | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/autogen.sh b/autogen.sh index 943a8380c..cc098c216 100755 --- a/autogen.sh +++ b/autogen.sh @@ -22,7 +22,7 @@ then fi export LIBTOOLIZE -update-version-h.sh +./update-version-h.sh autoreconf -fi -I m4 diff --git a/update-version-h.sh b/update-version-h.sh index c85e61f33..339d04949 100755 --- a/update-version-h.sh +++ b/update-version-h.sh @@ -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