build: Stop pre-generating man pages
The original asciidoc project is still stuck on python2, so on distros that didn't switch to a fork (like Fedora), it pulls in over 100M of legacy dependencies. However we are about to move our man pages to reStructuredText which doesn't have that issue, and which is already used for GLib's and GTK's man pages. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3454>
This commit is contained in:
parent
ef0341edac
commit
1f2f2d0de1
@ -132,13 +132,9 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('man')
|
if get_option('man')
|
||||||
if fs.exists('man/gnome-shell.1')
|
|
||||||
install_man('man/gnome-shell.1')
|
|
||||||
else
|
|
||||||
a2x = find_program('a2x')
|
a2x = find_program('a2x')
|
||||||
subdir('man')
|
subdir('man')
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
mutter_typelibdir = mutter_dep.get_variable('typelibdir')
|
mutter_typelibdir = mutter_dep.get_variable('typelibdir')
|
||||||
python = find_program('python3')
|
python = find_program('python3')
|
||||||
@ -326,7 +322,6 @@ gnome.post_install(
|
|||||||
gtk_update_icon_cache: true
|
gtk_update_icon_cache: true
|
||||||
)
|
)
|
||||||
|
|
||||||
meson.add_dist_script('meson/generate-manpages.py')
|
|
||||||
meson.add_dist_script('meson/generate-stylesheets.py')
|
meson.add_dist_script('meson/generate-stylesheets.py')
|
||||||
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
|
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
|
||||||
|
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import os
|
|
||||||
from pathlib import PurePath
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
man_pages = [
|
|
||||||
'man/gnome-shell.1',
|
|
||||||
'subprojects/extensions-tool/man/gnome-extensions.1',
|
|
||||||
]
|
|
||||||
|
|
||||||
sourceroot = os.environ.get('MESON_SOURCE_ROOT')
|
|
||||||
distroot = os.environ.get('MESON_DIST_ROOT')
|
|
||||||
|
|
||||||
for man_page in man_pages:
|
|
||||||
page_path = PurePath(man_page)
|
|
||||||
src = PurePath(sourceroot, page_path.with_suffix('.txt'))
|
|
||||||
dst = PurePath(distroot, page_path)
|
|
||||||
stylesheet = src.with_name('stylesheet.xsl')
|
|
||||||
|
|
||||||
subprocess.call(['a2x', '--xsl-file', os.fspath(stylesheet),
|
|
||||||
'--format', 'manpage', '--destination-dir', os.fspath(dst.parent),
|
|
||||||
os.fspath(src)])
|
|
@ -47,13 +47,9 @@ if bash_completion.found()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('man')
|
if get_option('man')
|
||||||
if fs.exists('man/gnome-extensions.1')
|
|
||||||
install_man('man/gnome-extensions.1')
|
|
||||||
else
|
|
||||||
a2x = find_program('a2x')
|
a2x = find_program('a2x')
|
||||||
subdir('man')
|
subdir('man')
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
if not meson.is_subproject()
|
if not meson.is_subproject()
|
||||||
subdir('po')
|
subdir('po')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user