mirror of
https://github.com/systemd/systemd.git
synced 2025-02-22 09:57:34 +03:00
meson: add rule to generate custom-entities.ent
This is a bit bare-bones, but should work for now. Maybe in the future we'll have a way to make meson generate it for us, without specifying all the names by hand.
This commit is contained in:
parent
78b68dcb55
commit
04e3eb46e3
7
man/custom-entities.ent.in
Normal file
7
man/custom-entities.ent.in
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!ENTITY MOUNT_PATH @MOUNT_PATH@>
|
||||
<!ENTITY UMOUNT_PATH @UMOUNT_PATH@>
|
||||
<!ENTITY systemgeneratordir @SYSTEM_GENERATOR_PATH@>
|
||||
<!ENTITY usergeneratordir @USER_GENERATOR_PATH@>
|
||||
<!ENTITY systemenvgeneratordir @SYSTEM_ENV_GENERATOR_PATH@>
|
||||
<!ENTITY userenvgeneratordir @USER_ENV_GENERATOR_PATH@>
|
@ -20,7 +20,11 @@ xsltproc_flags = [
|
||||
|
||||
custom_man_xsl = files('custom-man.xsl')
|
||||
custom_html_xsl = files('custom-man.xsl')
|
||||
custom_entities_ent = files('custom-entities.ent')
|
||||
|
||||
custom_entities_ent = configure_file(
|
||||
input : 'custom-entities.ent.in',
|
||||
output : 'custom-entities.ent',
|
||||
configuration : conf)
|
||||
|
||||
foreach tuple : manpages
|
||||
stem = tuple[0]
|
||||
@ -48,6 +52,7 @@ foreach tuple : manpages
|
||||
input : xml,
|
||||
output : [man] + manaliases,
|
||||
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_man_xsl, '@INPUT@'],
|
||||
depend_files : custom_entities_ent,
|
||||
install : install,
|
||||
install_dir : mandirn)
|
||||
|
||||
@ -55,7 +60,8 @@ foreach tuple : manpages
|
||||
html,
|
||||
input : xml,
|
||||
output : [html] + htmlaliases,
|
||||
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_html_xsl, '@INPUT@'])
|
||||
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_html_xsl, '@INPUT@'],
|
||||
depend_files : custom_entities_ent)
|
||||
|
||||
if not install
|
||||
message('Skipping @0@.@1@ because @2@ is @3@'.format(stem, section, condition, install))
|
||||
|
Loading…
x
Reference in New Issue
Block a user