os400: build cli manual.

Use PASE perl to run manual generation scripts.

As PASE perl is not aware of all possible input file encoding, convert
all files to UTF-8 upon build start (this might be lengthy).

OS/400 terminal emulation may only offer 76 columns, thus a new -c
parameter has been added to the managen program, defining the allowed
width.

If perl is not available, omit generation and disable online manual.

Closes #14289
This commit is contained in:
Patrick Monnerat 2024-07-28 00:36:09 +02:00 committed by Daniel Stenberg
parent b446802feb
commit d14149e3ea
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 101 additions and 4 deletions

View file

@ -1196,6 +1196,12 @@ elsif($cmd eq "-I") {
$cmd = shift @ARGV;
goto check;
}
elsif($cmd eq "-c") {
# Column width
$colwidth = 0 + shift @ARGV;
$cmd = shift @ARGV;
goto check;
}
my @files = @ARGV; # the rest are the files