From: Olivier Dion Date: Mon, 2 Oct 2023 19:09:44 +0000 (-0400) Subject: utils: Allow users to define LTTNG_MANPATH X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=ef4a570db1fbc6ffa5f645e76c4cf25e8098aee1;hp=ef4a570db1fbc6ffa5f645e76c4cf25e8098aee1;p=lttng-tools.git utils: Allow users to define LTTNG_MANPATH Currently, the configured value `MANPATH` is used when executing `man`. This forces `lttng --help` to use man pages where they will be installed, even with the `pre-inst-env` script. Instead, let the user provide a `LTTNG_MANPATH` environment variable. If not defined, fallback to the configured `MANPATH`. This allows developers to do: $ ./pre-inst-env lttng --help to read the locally generated man pages where the `pre-inst-env` script was generated. Also adding the `LTTNG_MAN_BIN_PATH` to `pre-inst-env` since `man` could be installed someplace else. Change-Id: I32d9af480737bb80732dc5d690f947242aacac4f Signed-off-by: Olivier Dion Signed-off-by: Jérémie Galarneau ---