tests: Add POPT_CFLAGS to gen-ust-events-ns and gen-ns-events
[lttng-tools.git] / pre-inst-env.in
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-only
3 #
4 # Copyright (c) 2023 Olivier Dion <odion@efficios.com>
5
6 srcdir=$(realpath "@abs_top_srcdir@")
7 builddir=$(realpath "@abs_top_builddir@")
8 bin="$builddir/src/bin"
9
10 # lttng-sessiond setup.
11 LTTNG_SESSION_CONFIG_XSD_PATH="$srcdir/src/common"
12 export LTTNG_SESSION_CONFIG_XSD_PATH
13
14 LTTNG_CONSUMERD32_BIN="$bin/lttng-consumerd/lttng-consumerd"
15 LTTNG_CONSUMERD64_BIN="$bin/lttng-consumerd/lttng-consumerd"
16 export LTTNG_CONSUMERD32_BIN
17 export LTTNG_CONSUMERD64_BIN
18
19 # lttng-create setup.
20 LTTNG_SESSIOND_PATH="$bin/lttng-sessiond/lttng-sessiond"
21 export LTTNG_SESSIOND_PATH
22
23 # Easy access to binaries.
24 PATH="$bin/lttng:$bin/lttng-consumerd:$bin/lttng-crash:$bin/lttng-relayd:$bin/lttng-sessiond:$PATH"
25 export PATH
26
27 # Use local path to search manual pages.
28 MANPATH="$builddir/doc/man"
29 export MANPATH
30
31 # Use local path to search manual pages for lttng --help.
32 LTTNG_MANPATH="$builddir/doc/man"
33 export LTTNG_MANPATH
34
35 # Use system man instead of /usr/bin/man.
36 LTTNG_MAN_BIN_PATH=$(type -p man)
37 export LTTNG_MAN_BIN_PATH
38
39 exec "$@"
This page took 0.030655 seconds and 4 git commands to generate.