~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Wouter van Heyst
  • Date: 2005-10-28 20:12:51 UTC
  • mto: (1185.16.143)
  • mto: This revision was merged to the branch mainline in revision 1498.
  • Revision ID: larstiq@larstiq.dyndns.org-20051028201251-d3015a1cf8ec0420
Create bzr.1 manpage from setup.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
from distutils.core import setup
8
8
from distutils.command.install_scripts import install_scripts
 
9
from distutils.command.build import build
9
10
 
10
11
 
11
12
###############################
36
37
                print "ERROR: Unable to create %s: %s" % (batch_path, e)
37
38
 
38
39
 
 
40
class bzr_build(build):
 
41
    """Customized build distutils action.
 
42
    Generate bzr.1.
 
43
    """
 
44
    def run(self):
 
45
        build.run(self)
 
46
 
 
47
        import bzr_man
 
48
        bzr_man.main()
 
49
 
39
50
########################
40
51
## Setup
41
52
########################
58
69
                'bzrlib.util.configobj',
59
70
                ],
60
71
      scripts=['bzr'],
61
 
      cmdclass={'install_scripts': my_install_scripts},
 
72
      cmdclass={'install_scripts': my_install_scripts, 'build': bzr_build},
 
73
      data_files=[('man/man1', ['bzr.1'])],
62
74
     )