diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/foot.1.scd | 2 | ||||
| -rw-r--r-- | doc/foot.ini.5.scd | 4 | ||||
| -rw-r--r-- | doc/footclient.1.scd | 2 | ||||
| -rw-r--r-- | doc/meson.build | 14 |
4 files changed, 17 insertions, 5 deletions
diff --git a/doc/foot.1.scd b/doc/foot.1.scd index afa6cf54..bbe784bc 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -57,7 +57,7 @@ the foot command line *-t*,*--term*=_TERM_ Value to set the environment variable *TERM* to (see *TERMINFO* - and *ENVIRONMENT*). Default: _foot_. + and *ENVIRONMENT*). Default: _@default_terminfo@_. *-T*,*--title*=_TITLE_ Initial window title. Default: _foot_. diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 1e9152aa..65a3a4dc 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -29,8 +29,8 @@ in this order: by prepending a '-' to argv[0]. Default: _no_. *term* - Value to set the environment variable *TERM* to. Default: _foot_ - or _xterm-256color_ if built with _-Dterminfo=disabled_ + Value to set the environment variable *TERM* to. Default: + _@default_terminfo@_ *font*, *font-bold*, *font-italic*, *font-bold-italic* Comma separated list of fonts to use, in fontconfig format. That diff --git a/doc/footclient.1.scd b/doc/footclient.1.scd index a002a899..b252d5e1 100644 --- a/doc/footclient.1.scd +++ b/doc/footclient.1.scd @@ -24,7 +24,7 @@ terminal has terminated. *-t*,*--term*=_TERM_ Value to set the environment variable *TERM* to (see *TERMINFO* - and *ENVIRONMENT*). Default: _foot_. + and *ENVIRONMENT*). Default: _@default_terminfo@_. *-T*,*--title*=_TITLE_ Initial window title. Default: _foot_. diff --git a/doc/meson.build b/doc/meson.build index a139d4c2..a8b086ef 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -2,6 +2,12 @@ sh = find_program('sh', native: true) scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) +conf_data = configuration_data( + { + 'default_terminfo': get_option('default-terminfo'), + } +) + foreach man_src : [{'name': 'foot', 'section' : 1}, {'name': 'foot.ini', 'section': 5}, {'name': 'footclient', 'section': 1}, @@ -10,10 +16,16 @@ foreach man_src : [{'name': 'foot', 'section' : 1}, section = man_src['section'] out = '@0@.@1@'.format(name, section) + preprocessed = configure_file( + input: '@0@.@1@.scd'.format(name, section), + output: '@0@.preprocessed'.format(out), + configuration: conf_data, + ) + custom_target( out, output: out, - input: '@0@.@1@.scd'.format(name, section), + input: preprocessed, command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())], capture: true, install: true, |
