diff options
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, }, |