diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2012-12-15 12:25:53 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2012-12-15 12:25:53 -0800 |
commit | 05a6754b6c7bc9e668d931e8d4249deefbc8e98f (patch) | |
tree | 9d5374ef4b312291ee14fcc1f94059c9a8ea910b | |
parent | add missing import from last change (diff) | |
download | mirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.tar.gz mirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.tar.bz2 mirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.zip |
Add the manpage to be updated with the new version
-rwxr-xr-x | setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -30,6 +30,10 @@ python_scripts = [os.path.join(cwd, path) for path in ( 'mirrorselect/version.py', )] +manpage = [os.path.join(cwd, path) for path in ( + 'mirrorselect.8', +)] + class set_version(core.Command): """Set python version to our __version__.""" @@ -59,6 +63,8 @@ class set_version(core.Command): quote = r'[\'"]{1}' python_re = r'(?<=^version = )' + quote + '[^\'"]*' + quote sub(python_scripts, python_re) + man_re = r'(?<=^.TH "mirrorselect" "8" )' + quote + '[^\'"]*' + quote + sub(manpage, man_re) def load_test(): |