projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ec03b
)
Generate PAZPAR2_VERSION_SHA1 (Git SHA1 ID).
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 May 2009 10:59:46 +0000
(12:59 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 May 2009 10:59:46 +0000
(12:59 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
0eb1621
..
e17d571
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-27,6
+27,14
@@
YAZ_DOC
AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
AC_CHECK_FUNCS([getaddrinfo])
+
+if test -d ${srcdir}/.git; then
+ sha=`git show --pretty=format:%H|head -1`
+else
+ sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
+fi
+AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
+
AC_CONFIG_FILES([
Doxyfile
Makefile