diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2013-12-27 16:32:44 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2013-12-27 16:32:44 (GMT) |
commit | f2b2382afc1109ee192a6d8eb310b3dc2a41807e (patch) | |
tree | 3ad0615f40c3664833712ecd4fcf8d0cc225eeea /bin | |
parent | 9a2c157fa1854bd8db943a74093f2b5cfd0e2677 (diff) | |
download | SCons-f2b2382afc1109ee192a6d8eb310b3dc2a41807e.zip SCons-f2b2382afc1109ee192a6d8eb310b3dc2a41807e.tar.gz SCons-f2b2382afc1109ee192a6d8eb310b3dc2a41807e.tar.bz2 |
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.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py index 338bba9..14894a4 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 |