aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-12-15 12:25:53 -0800
committerBrian Dolbec <dolsen@gentoo.org>2012-12-15 12:25:53 -0800
commit05a6754b6c7bc9e668d931e8d4249deefbc8e98f (patch)
tree9d5374ef4b312291ee14fcc1f94059c9a8ea910b
parentadd missing import from last change (diff)
downloadmirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.tar.gz
mirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.tar.bz2
mirrorselect-05a6754b6c7bc9e668d931e8d4249deefbc8e98f.zip
Add the manpage to be updated with the new version
-rwxr-xr-xsetup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 01e7c5c..8a9f980 100755
--- a/setup.py
+++ b/setup.py
@@ -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():