8000 meson: add feature for translated documentation · util-linux/util-linux@fa3aeb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa3aeb5

Browse files
t-8chkarelzak
authored andcommitted
meson: add feature for translated documentation
Translating the documentation is slow. Add a feature which can be used to disable this step. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de> (cherry picked from commit 188f3af)
1 parent 616f4ec commit fa3aeb5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ option('sysvinit', type : 'feature', value : 'disabled',
2525
option('btrfs', type : 'feature')
2626
option('widechar', type : 'feature',
2727
description : 'compile with wide character support')
28+
option('translate-docs', type : 'feature',
29+
description : 'translate documentation')
2830

2931
# enable building of various programs and features ("build-" prefix)
3032

po-man/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
po4a = find_program('po4a', required : false)
22

3-
if not (asciidoctor.found() and po4a.found())
3+
if not get_option('translate-docs').require(asciidoctor.found()).require(po4a.found()).allowed()
44
subdir_done()
55
endif
66

0 commit comments

Comments
 (0)
0