diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-06-11 04:20:56 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-06-11 04:20:56 +0000 |
commit | 321f19d12213300e76714b0561745e849d78fe5e (patch) | |
tree | 5a145373893d26a9fe73d7440d47d59d4d3687b1 /bin | |
parent | 24142a289f2c0cd9b4892a8acbbbd587e9c42df4 (diff) | |
download | scons-321f19d12213300e76714b0561745e849d78fe5e.tar.gz |
Move update-release-info.py from src/ to tests/update_release-info/
Diffstat (limited to 'bin')
-rw-r--r-- | bin/update-release-info.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py index 372fc74c..15a35b7c 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 |