summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2013-12-27 11:32:44 -0500
committerGary Oberbrunner <garyo@oberbrunner.com>2013-12-27 11:32:44 -0500
commitbb9a3338a592a8482864a23aa151fa848445e5c5 (patch)
tree3ad0615f40c3664833712ecd4fcf8d0cc225eeea /bin
parenta5eb81b993ff20790c09d869d62e7fc39f95a41e (diff)
downloadscons-bb9a3338a592a8482864a23aa151fa848445e5c5.tar.gz
update-release-info: fixed date updating for doc/user/main.xml.
Also added note that doc/user/main.in is no longer needed/used and prevent that from stopping the doc gen process.
Diffstat (limited to 'bin')
-rw-r--r--bin/update-release-info.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py
index 338bba91..14894a4f 100644
--- a/bin/update-release-info.py
+++ b/bin/update-release-info.py
@@ -333,17 +333,18 @@ 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>')
+if os.path.exists(os.path.join('doc', 'user', 'main.in')):
+ # this is no longer used as of Dec 2013
+ 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>')
+t.sub('<pubdate>[^<]*</pubdate>', '<pubdate>' + docyears + '</pubdate>')
+t.sub('<year>[^<]*</year>', '<year>' + docyears + '</year>')
# Write out the last update