Changeset 2583


Ignore:
Timestamp:
Jul 18, 2012 6:23:53 AM (7 years ago)
Author:
stefan
Message:

patch by Sébastien Farro to fix problems when using svnversion on non-versioned directories (as from a tarball)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2577 r2583  
    106106    AC_SUBST(m4_toupper($1_SVN_REV))
    107107    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
    108     if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
     108    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
    109109      m4_toupper($1_SVN_REV)=`echo $svn_rev_tmp | sed -n -e 's/^@<:@0-9@:>@*://' -e 's/\(@<:@0-9@:>@\)@<:@^0-9@:>@*$/\1/p'`
    110110      AC_DEFINE_UNQUOTED(m4_toupper($1_SVN_REV), $m4_toupper($1_SVN_REV), [SVN revision number of project])
Note: See TracChangeset for help on using the changeset viewer.