Wrap calls to fmt::format to catch formatting exceptions
[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 exec "$@"
This page took 0.0311940000000001 seconds and 4 git commands to generate.