Changeset 733 for trunk/lib/Makefile.am


Ignore:
Timestamp:
Dec 15, 2008, 11:23:45 PM (13 years ago)
Author:
Peter Johansson
Message:

fixes #362 - in export mode revision number will be an empty string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r726 r733  
    6464  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
    6565  revision=`$(SVNVERSION) $(top_srcdir)` ;\
    66   $(SED) -e 's/sub_2_svn_revision/'$$revision'/g' \
     66  $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \
    6767  $(srcdir)/subversion_info.cc.in >> $@ ;
    6868
     
    7474  @year=`svn info $(top_srcdir)|$(SED) -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
    7575  $(SED) -e 's/20[0-9][0-9]/'$$year'/g' $(srcdir)/copyright_year.cc > $@ ;
     76
     77else
     78# this is needed in 'svn export' build
     79$(srcdir)/subversion_info.cc:
     80  $(SED) -e 's/sub_2_svn_revision//g' \
     81  $(srcdir)/subversion_info.cc.in >> $@ ;
     82
    7683endif
    7784
Note: See TracChangeset for help on using the changeset viewer.