From 342ea302bc1a1cf2ea81b93b8c2283a8dbd07153 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 24 May 2009 13:48:55 +0000 Subject: [PATCH] =?UTF-8?q?(trunk=20libT)=20version.h=20build=20issue=20th?= =?UTF-8?q?at=20manifested=20itself=20as=20"tr-dht.c:156:=20error:=20expec?= =?UTF-8?q?ted=20expression=20before=20=E2=80=98>>=E2=80=99=20token".=20?= =?UTF-8?q?=20Thanks=20to=20geirha=20for=20tracking=20down=20the=20problem?= =?UTF-8?q?=20and=20contributing=20a=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libtransmission/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtransmission/Makefile.am b/libtransmission/Makefile.am index fc43e3a2a..5b2ac490c 100644 --- a/libtransmission/Makefile.am +++ b/libtransmission/Makefile.am @@ -184,7 +184,7 @@ BUILT_SOURCES = \ version.h: echo '#define PEERID_PREFIX "'@PEERID_PREFIX@'"' > version.h echo '#define USERAGENT_PREFIX "'@USERAGENT_PREFIX@'"' >> version.h - echo '#define SVN_REVISION "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h - echo '#define SVN_REVISION_NUM '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h + echo '#define SVN_REVISION "'`svnversion | sed -r 's/([0-9]+).*/\1/'`'"' >> version.h + echo '#define SVN_REVISION_NUM '`svnversion | sed -r 's/([0-9]+).*/\1/'`'' >> version.h echo '#define SHORT_VERSION_STRING "'@USERAGENT_PREFIX@'"' >> version.h - echo '#define LONG_VERSION_STRING "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h + echo '#define LONG_VERSION_STRING "'@USERAGENT_PREFIX@' ('`svnversion | sed -r 's/([0-9]+).*/\1/'`')"' >> version.h