diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-09-11 19:17:41 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-09-11 19:17:41 +0100 |
commit | 33be3b31e9cbbb138911371480e213f6478c1bf3 (patch) | |
tree | 97f670031cba60a135d6fbecb6eb87d7aa2b996e /setup.py | |
parent | f3e390374d5bff22b30f26dc22bc3b29c872402f (diff) | |
download | cmdtest-33be3b31e9cbbb138911371480e213f6478c1bf3.tar.gz |
Add preliminary manpage for cmdtest.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -27,6 +27,18 @@ import subprocess import cmdtestlib +class GenerateManpage(build): + + def run(self): + build.run(self) + print 'building manpages' + for x in ['cmdtest']: + with open('%s.1' % x, 'w') as f: + subprocess.check_call(['python', x, + '--generate-manpage=%s.1.in' % x, + '--output=%s.1' % x], stdout=f) + + class CleanMore(clean): def run(self): @@ -60,6 +72,7 @@ setup(name='cmdtest', scripts=['cmdtest'], py_modules=['cmdtestlib'], cmdclass={ + 'build': GenerateManpage, 'check': Check, 'clean': CleanMore, }, |