mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add man pages to the source tarball
This commit is contained in:
parent
154ceb6340
commit
556c32b6b8
@ -44,6 +44,7 @@ sys.path = sys.path[1:]
|
||||
sys.exit(complete.main())
|
||||
'''
|
||||
|
||||
|
||||
class Develop(Command):
|
||||
|
||||
description = textwrap.dedent('''\
|
||||
@ -265,6 +266,7 @@ class Install(Develop):
|
||||
self.info('\n\ncalibre successfully installed. You can start'
|
||||
' it by running the command calibre')
|
||||
|
||||
|
||||
class Sdist(Command):
|
||||
|
||||
description = 'Create a source distribution'
|
||||
@ -310,6 +312,7 @@ class Sdist(Command):
|
||||
if not os.path.exists(dest):
|
||||
shutil.copy2(y, dest)
|
||||
shutil.copytree(self.j(tbase, 'manual'), self.j(tdir, 'translations', 'manual'))
|
||||
self.add_man_pages(self.j(tdir, 'man-pages'))
|
||||
|
||||
self.info('\tCreating tarfile...')
|
||||
dest = self.DEST.rpartition('.')[0]
|
||||
@ -319,10 +322,15 @@ class Sdist(Command):
|
||||
os.remove(self.a(self.DEST))
|
||||
subprocess.check_call(['xz', '-9', self.a(dest)])
|
||||
|
||||
def add_man_pages(self, dest):
|
||||
from setup.commands import man_pages
|
||||
man_pages.build_man_pages(dest)
|
||||
|
||||
def clean(self):
|
||||
if os.path.exists(self.DEST):
|
||||
os.remove(self.DEST)
|
||||
|
||||
|
||||
class Bootstrap(Command):
|
||||
|
||||
description = 'Bootstrap a fresh checkout of calibre from git to a state where it can be installed. Requires various development tools/libraries/headers'
|
||||
|
Loading…
x
Reference in New Issue
Block a user