Changeset 3537


Ignore:
Timestamp:
Oct 24, 2007, 8:00:50 PM (14 years ago)
Author:
charles
Message:

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

Location:
branches/0.9x
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/configure.ac

    r3529 r3537  
    11AC_INIT([transmission],[0.90],[http://transmission.m0k.org/trac/newticket])
     2
     3dnl constraint: strlen(MAJOR MINOR MAINT BETA) must be 4
     4dnl convention: BETA: "Z" for a beta, "0" for a stable
    25PEERID_PREFIX="-TR090Z-"
    36USERAGENT_PREFIX="0.90+"
     7AC_SUBST(PEERID_PREFIX,[$PEERID_PREFIX])
     8AC_SUBST(USERAGENT_PREFIX,[$USERAGENT_PREFIX])
    49
    510AC_PREREQ(2.54)
     
    180185dnl ----------------------------------------------------------------------------
    181186dnl
    182 dnl  Version files
    183 
    184 
    185 dnl constraint: strlen(MAJOR MINOR MAINT BETA) must be 4
    186 dnl convention: BETA: "Z" for a beta, "0" for a stable
    187 SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
    188 AC_SUBST(PEERID_PREFIX,[$PEERID_PREFIX])
    189 AC_SUBST(USERAGENT_PREFIX,[$USERAGENT_PREFIX])
    190 AC_SUBST(SVN_REVISION,[$SVN_REVISION])
    191 AC_SUBST(BUNDLE_VERSION,[$SVN_REVISION])
    192 AC_SUBST(VERSION_PACKAGE,$USERAGENT_PREFIX-r$SVN_REVISION)
    193 
    194 
    195 dnl ----------------------------------------------------------------------------
    196 dnl
    197187dnl  Generate the output
    198188
  • branches/0.9x/libtransmission/Makefile.am

    r3534 r3537  
    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
  • branches/0.9x/macosx/Makefile.am

    r3529 r3537  
    8787    TorrentTableView.m
    8888
     89dist-hook:
     90        rm -rf `find $(distdir)/macosx -name ".svn"`
     91
    8992# Use Xcode do make the actual build
    9093all:
Note: See TracChangeset for help on using the changeset viewer.