Changeset 2145


Ignore:
Timestamp:
Mar 29, 2011 6:41:17 AM (8 years ago)
Author:
stefan
Message:

fix nonsetting of _SVN_REV if code is not a checkout from svn repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2139 r2145  
    105105  if test "x$have_svnversion" = xyes; then
    106106    AC_SUBST(m4_toupper($1_SVN_REV))
    107     svn_rev_tmp=`cd $srcdir/$m4_tolower(coin_has_$1) ; svnversion`
    108     m4_toupper($1_SVN_REV)=`echo $svn_rev_tmp | sed -n -e 's/^@<:@0-9@:>@*://' -e 's/\(@<:@0-9@:>@\)@<:@^0-9@:>@*$/\1/p'`
    109     if test $m4_toupper($1_SVN_REV) != exported; then
     107    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
     108    if test "$m4_toupper($1_SVN_REV)" != exported; then
     109      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])
    111111    fi
Note: See TracChangeset for help on using the changeset viewer.