From 2abb55b73522ccd8f08847d26c06769ec2eecc27 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 12 Dec 2017 11:01:51 +0100 Subject: docs-xml: autogenerate a doc.version XML entity. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9531 Signed-off-by: Stefan Metzmacher Reviewed-by: Karolin Seeger Reviewed-by: Andreas Schneider --- wscript_build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wscript_build') 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') -- cgit v1.2.1