Skip to content

Commit

Permalink
Use git describe for version
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 4, 2015
1 parent d256b6c commit aa74a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -765,8 +765,8 @@ AC_ARG_WITH(PATOH, [ --with-PATOH=DIR Compile with PATOH hyperg

AC_MSG_CHECKING([for revision])
SOURCE_REVISION=""
test -f REVISION && SOURCE_REVISION=`head -n1 REVISION | grep -o @<:@0-9@:>@@<:@0-9@:>@*`
test -z "$SOURCE_REVISION" && SOURCE_REVISION=`svn info 2>&1 | grep ^Revision: | cut -d\ -f2`
test -f REVISION && SOURCE_REVISION=`head -n1 REVISION`
test -z "$SOURCE_REVISION" && test -d .git && SOURCE_REVISION=`git describe`
test -z "$SOURCE_REVISION" && SOURCE_REVISION="????"

AC_MSG_RESULT([$SOURCE_REVISION])
Expand Down

0 comments on commit aa74a25

Please sign in to comment.