summaryrefslogtreecommitdiff
path: root/wscript_build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-12-12 11:01:51 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-12-13 13:20:08 +0100
commit2abb55b73522ccd8f08847d26c06769ec2eecc27 (patch)
treefad3ae044a3c992558f9956d2ad776dc26b4bb1c /wscript_build
parent00d3019262544a730929fab2d525b23efe226906 (diff)
downloadsamba-2abb55b73522ccd8f08847d26c06769ec2eecc27.tar.gz
docs-xml: autogenerate a doc.version XML entity.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9531 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'wscript_build')
-rw-r--r--wscript_build5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript_build b/wscript_build
index 253f95f8bc0..e2b1f872017 100644
--- a/wscript_build
+++ b/wscript_build
@@ -23,7 +23,7 @@ bld.env.build_public_headers = 'include/public'
# compilation, so they are safe
bld.env.public_headers_skip = ['lib/param/param_proto.h', 'lib/param/param_functions.h']
-samba_version.load_version(bld.env, is_install=bld.is_install)
+version=samba_version.load_version(bld.env, is_install=bld.is_install)
bld.SAMBA_MKVERSION('version.h')
# bld.ENABLE_MAGIC_ORDERING()
@@ -33,6 +33,9 @@ bld.env.ABS_TOP_BUILDDIR = bld.srcnode.abspath() + '/bin/default/docs-xml'
bld.CONFIGURE_FILE('docs-xml/build/catalog.xml',
ABS_TOP_BUILDDIR = bld.env.ABS_TOP_BUILDDIR,
ABS_TOP_SRCDIR=bld.env.ABS_TOP_SRCDIR)
+bld.env.DOC_VERSION=version.STRING
+bld.CONFIGURE_FILE('docs-xml/build/DTD/samba.build.version',
+ DOC_VERSION=bld.env.DOC_VERSION)
bld.RECURSE('docs-xml')
bld.RECURSE('lib/replace')