IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2009, 10:16:54 PM (17 years ago)
Author:
Paul Price
Message:

Making version information not dependent upon running configure, but on make.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/m4/ipp_stdopts.m4

    r23787 r23793  
    5050        )
    5151       
    52         [$1]_VERSION="UNKNOWN"
    53         [$1]_BRANCH="UNKNOWN"
    54         [$1]_SOURCE="UNKNOWN"
    5552        AS_IF([test "x$enable_version" = xtrue],
    5653                [AC_PATH_PROG([SVNVERSION], [svnversion])
    57                 AC_PATH_PROG([SVN], [svn])
    58                 AC_PROG_SED
    59                 AS_IF([test "x$SVNVERSION" != x], [$1]_VERSION=`$SVNVERSION`)
    60                 AS_IF([test "x$SVN" != x],
    61                         [[$1]_BRANCH=`$SVN info | $SED -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'`
    62                         [$1]_SOURCE=`$SVN info | $SED -n -e 's/Repository UUID: // p'`])
    63                 ]
     54                AC_PATH_PROG([SVN], [svn])]
    6455        )
    65        
    66 dnl     AC_SUBST([$1]_VERSION,[[$1]_VERSION])
    67 dnl     AC_SUBST([$1]_BRANCH,[[$1]_BRANCH])
    68 dnl     AC_SUBST([$1]_SOURCE,[[$1]_SOURCE])
     56        AC_PROG_SED
     57        AM_CONDITIONAL([HAVE_SVNVERSION], [test "x$SVNVERSION" != x])
     58        AM_CONDITIONAL([HAVE_SVN], [test "x$SVN" != x])
    6959])
Note: See TracChangeset for help on using the changeset viewer.