Ignore:
Timestamp:
Oct 24, 2007, 7:57:47 PM (14 years ago)
Author:
charles
Message:

don't require the user to have svn installed when building from tarball

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Makefile.am

    r3533 r3536  
    7676    xml.h
    7777
    78 BUILT_SOURCES = version.h
     78dist_libtransmission_a_SOURCES = \
     79    version.h
    7980
    80 EXTRA_DIST = \
    81         version.h \
    82         version.h.in
    83 
    84 do_subst = sed \
    85         -e 's,[@]PEERID_PREFIX[@],$(PEERID_PREFIX),g' \
    86         -e 's,[@]USERAGENT_PREFIX[@],$(USERAGENT_PREFIX),g' \
    87         -e 's,[@]SVN_REVISION[@],$(SVN_REVISION),g' \
    88         -e 's,[@]SHORT_VERSION_STRING[@],$(SHORT_VERSION_STRING),g' \
    89         -e 's,[@]LONG_VERSION_STRING[@],$(LONG_VERSION_STRING),g'
    90 
    91 version.h: version.h.in
    92         $(do_subst) < $(srcdir)/version.h.in > version.h
    93 
    94 CLEANFILES = \
    95         version.h
     81version.h:
     82        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
     83        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
     84        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
     85        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
     86        echo '#define LONG_VERSION_STRING   "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h
Note: See TracChangeset for help on using the changeset viewer.