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

@ -69,6 +69,9 @@ if [ -f "${SCRIPTDIR}/config400.override" ]
then . "${SCRIPTDIR}/config400.override"
fi
# Check if perl available.
{ [ -n "${PASEPERL}" ] && [ -x "${PASEPERL}" ]; } || PASEPERL=
# Need to get the version definitions.
LIBCURL_VERSION=$(grep '^#define *LIBCURL_VERSION ' \