Ignore:
Timestamp:
May 24, 2009, 1:48:55 PM (13 years ago)
Author:
charles
Message:

(trunk libT) version.h build issue that manifested itself as "tr-dht.c:156: error: expected expression before ‘>>’ token". Thanks to geirha for tracking down the problem and contributing a fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Makefile.am

    r8433 r8508  
    185185        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
    186186        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
    187         echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
    188         echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
     187        echo '#define SVN_REVISION          "'`svnversion | sed -r 's/([0-9]+).*/\1/'`'"' >> version.h
     188        echo '#define SVN_REVISION_NUM      '`svnversion | sed -r 's/([0-9]+).*/\1/'`'' >> version.h
    189189        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
    190         echo '#define LONG_VERSION_STRING   "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h
     190        echo '#define LONG_VERSION_STRING   "'@USERAGENT_PREFIX@' ('`svnversion | sed -r 's/([0-9]+).*/\1/'`')"' >> version.h
Note: See TracChangeset for help on using the changeset viewer.