| 1 | |
| 2 | |
| 3 | @@ -1393,24 +1393,6 @@ def create_linux_bundle_gunk(ddir: str,
|
| 4 | base = Path(ddir)
|
| 5 | in_src_launcher = base / (f'{libdir_name}/kitty/kitty/launcher/kitty')
|
| 6 | launcher = base / 'bin/kitty'
|
| 7 | - skip_docs = False
|
| 8 | - if not os.path.exists('docs/_build/html'):
|
| 9 | - kitten_exe = os.path.join(os.path.dirname(str(launcher)), 'kitten')
|
| 10 | - if os.path.exists(kitten_exe):
|
| 11 | - os.environ['KITTEN_EXE_FOR_DOCS'] = kitten_exe
|
| 12 | - make = 'gmake' if is_freebsd else 'make'
|
| 13 | - run_tool([make, 'docs'])
|
| 14 | - else:
|
| 15 | - if args.skip_building_kitten:
|
| 16 | - skip_docs = True
|
| 17 | - print('WARNING: You have chosen to skip building kitten.'
|
| 18 | - ' This means docs could not be generated and will not be included in the linux package.'
|
| 19 | - ' You should build kitten and then re-run this build.', file=sys.stderr)
|
| 20 | - else:
|
| 21 | - raise SystemExit(f'kitten binary not found at: {kitten_exe}')
|
| 22 | - if not skip_docs:
|
| 23 | - copy_man_pages(ddir)
|
| 24 | - copy_html_docs(ddir)
|
| 25 | for (icdir, ext) in {'256x256': 'png', 'scalable': 'svg'}.items():
|
| 26 | icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', icdir, 'apps')
|
| 27 | safe_makedirs(icdir)
|