summaryrefslogtreecommitdiff
path: root/docs-xml
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@samba.org>2018-01-04 10:38:05 +0100
committerBjoern Jacke <bj@sernet.de>2018-01-04 16:04:09 +0100
commit03f0ba71953b2738261e897074e7d91c6022c1b7 (patch)
treeb140d9f7a271c62be13e9574095a713aff087cad /docs-xml
parent114f5da2fab6f587de77e792274b396fb3d7ce71 (diff)
downloadsamba-03f0ba71953b2738261e897074e7d91c6022c1b7.tar.gz
docs-xml: figure out samba version for the docs automatically
Signed-off-by: Bjoern Jacke <bjoern@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
Diffstat (limited to 'docs-xml')
-rw-r--r--docs-xml/configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs-xml/configure.ac b/docs-xml/configure.ac
index 8c26692630b..4a203295d9f 100644
--- a/docs-xml/configure.ac
+++ b/docs-xml/configure.ac
@@ -55,8 +55,14 @@ fi
AC_SUBST(TARGETS)
+. ../VERSION
if test x"$DOC_VERSION" = x; then
- AC_MSG_ERROR([Please export DOC_VERSION variable])
+ #AC_MSG_ERROR([Please export DOC_VERSION variable])
+ VERSION_SUFFIX=""
+ if test x"$SAMBA_VERSION_PRE_RELEASE" = xyes; then
+ VERSION_SUFFIX=pre
+ fi
+ DOC_VERSION=${SAMBA_VERSION_MAJOR}.${SAMBA_VERSION_MINOR}.${SAMBA_VERSION_RELEASE}${VERSION_SUFFIX}
else
AC_MSG_RESULT([DOC_VERSION: ${DOC_VERSION}])
fi