Changeset 733 for trunk/lib


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

Location:
trunk/lib
Files:
3 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
  • trunk/lib/OptionVersion.cc

    r726 r733  
    5252      cs << " (";
    5353      if (DEV_BUILD)
    54         cs << "r" << svn_revision() << " ";
     54        cs << svn_revision() << " ";
    5555      cs << "compiled " << compilation_time() << ", " << compilation_date()
    5656         << ")";
  • trunk/lib/html_utility.cc

    r716 r733  
    6868                 PACKAGE_STRING, 0, "");
    6969    if (DEV_BUILD)
    70       os << " (dev build r" << svn_revision() << ")";
     70      os << " (dev build " << svn_revision() << ")";
    7171    os << "\n</p>\n</div>\n</body>\n</html>\n";
    7272  }
Note: See TracChangeset for help on using the changeset viewer.