summaryrefslogtreecommitdiffstats
path: root/doc/SConscript
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2021-07-19 00:47:45 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2021-07-19 00:47:45 (GMT)
commit806b66a5b20b198d39499ba4f3b0cdadcc06a8e6 (patch)
treec0ebcae54c1df5dbe8e1e93b9cc960910502fe02 /doc/SConscript
parent4022901f88a4d9e0bad67c65785f15b449f346fe (diff)
downloadSCons-806b66a5b20b198d39499ba4f3b0cdadcc06a8e6.zip
SCons-806b66a5b20b198d39499ba4f3b0cdadcc06a8e6.tar.gz
SCons-806b66a5b20b198d39499ba4f3b0cdadcc06a8e6.tar.bz2
removed doc/user/copyright.xml the markup is moved ot doc/user/main.xml
Diffstat (limited to 'doc/SConscript')
-rw-r--r--doc/SConscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/SConscript b/doc/SConscript
index ba96935..82c696e 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -81,7 +81,7 @@ env = orig_env.Clone(SCONS_PY=File('#/scripts/scons.py').rfile())
#
# --- Helpers ---
#
-def writeVersionXml(verfile, date, ver, rev):
+def writeVersionXml(verfile, date, ver, rev, copyright_years):
""" Helper function: Write a version.xml file. """
try:
os.unlink(verfile)
@@ -99,7 +99,8 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
<!ENTITY builddate "%s">
<!ENTITY buildversion "%s">
<!ENTITY buildrevision "%s">
-""" % (date, ver, rev))
+<!ENTITY copyright_years "%s">
+""" % (date, ver, rev, copyright_years))
# The names of the target files for the MAN pages
@@ -156,9 +157,9 @@ else:
# for this run. Ignore it for dependency purposes so we don't
# rebuild all the docs every time just because the date changes.
#
- date, ver, rev = env.Dictionary('DATE', 'VERSION', 'REVISION')
+ date, ver, rev, copyright_years = env.Dictionary('DATE', 'VERSION', 'REVISION', 'COPYRIGHT_YEARS')
version_xml = File(os.path.join(build, "version.xml"))
- writeVersionXml(str(version_xml), date, ver, rev)
+ writeVersionXml(str(version_xml), date, ver, rev, copyright_years)
import shutil
import SCons.Builder