From bb9a3338a592a8482864a23aa151fa848445e5c5 Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Fri, 27 Dec 2013 11:32:44 -0500 Subject: 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. --- bin/update-release-info.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'bin') 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('[^<]*', '' + docyears + '') -#t.sub('[^<]*', '' + docyears + '') +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('[^<]*', '' + docyears + '') + #t.sub('[^<]*', '' + docyears + '') t = UpdateFile(os.path.join('doc', 'user', 'main.xml')) if DEBUG: t.file = '/tmp/main.xml' -## TODO debug these -#t.sub('[^<]*', '' + docyears + '') -#t.sub('[^<]*', '' + docyears + '') +t.sub('[^<]*', '' + docyears + '') +t.sub('[^<]*', '' + docyears + '') # Write out the last update -- cgit v1.2.1