summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-06-11 04:20:56 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-06-11 04:20:56 (GMT)
commitf621d6697cab25abc05b23f3fd443b805b1ee76f (patch)
tree5a145373893d26a9fe73d7440d47d59d4d3687b1 /bin
parent72f883804a646818437ed3f3a973e7685415c91d (diff)
downloadSCons-f621d6697cab25abc05b23f3fd443b805b1ee76f.zip
SCons-f621d6697cab25abc05b23f3fd443b805b1ee76f.tar.gz
SCons-f621d6697cab25abc05b23f3fd443b805b1ee76f.tar.bz2
Move update-release-info.py from src/ to tests/update_release-info/
Diffstat (limited to 'bin')
-rw-r--r--bin/update-release-info.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py
index 372fc74..15a35b7 100644
--- a/bin/update-release-info.py
+++ b/bin/update-release-info.py
@@ -328,6 +328,21 @@ if DEBUG: t.file = '/tmp/Main.py'
t.replace_assign('unsupported_python_version', str(unsupported_version))
t.replace_assign('deprecated_python_version', str(deprecated_version))
+# Update doc/user/main.{in,xml}
+
+docyears = ', '.join(map(str, iter(range(2004, release_date[0] + 1))))
+t = UpdateFile(os.path.join('doc', 'user', 'main.in'))
+if DEBUG: t.file = '/tmp/main.in'
+## TODO debug these
+#t.sub('<pubdate>[^<]*</pubdate>', '<pubdate>' + docyears + '</pubdate>')
+#t.sub('<year>[^<]*</year>', '<year>' + docyears + '</year>')
+
+t = UpdateFile(os.path.join('doc', 'user', 'main.xml'))
+if DEBUG: t.file = '/tmp/main.xml'
+## TODO debug these
+#t.sub('<pubdate>[^<]*</pubdate>', '<pubdate>' + docyears + '</pubdate>')
+#t.sub('<year>[^<]*</year>', '<year>' + docyears + '</year>')
+
# Write out the last update
t = None