-
Notifications
You must be signed in to change notification settings - Fork 76
/
pre-inst-env.in
39 lines (30 loc) · 1.04 KB
/
pre-inst-env.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (c) 2023 Olivier Dion <[email protected]>
srcdir=$(realpath "@abs_top_srcdir@")
builddir=$(realpath "@abs_top_builddir@")
bin="$builddir/src/bin"
# lttng-sessiond setup.
LTTNG_SESSION_CONFIG_XSD_PATH="$srcdir/src/common"
export LTTNG_SESSION_CONFIG_XSD_PATH
LTTNG_CONSUMERD32_BIN="$bin/lttng-consumerd/lttng-consumerd"
LTTNG_CONSUMERD64_BIN="$bin/lttng-consumerd/lttng-consumerd"
export LTTNG_CONSUMERD32_BIN
export LTTNG_CONSUMERD64_BIN
# lttng-create setup.
LTTNG_SESSIOND_PATH="$bin/lttng-sessiond/lttng-sessiond"
export LTTNG_SESSIOND_PATH
# Easy access to binaries.
PATH="$bin/lttng:$bin/lttng-consumerd:$bin/lttng-crash:$bin/lttng-relayd:$bin/lttng-sessiond:$PATH"
export PATH
# Use local path to search manual pages.
MANPATH="$builddir/doc/man"
export MANPATH
# Use local path to search manual pages for lttng --help.
LTTNG_MANPATH="$builddir/doc/man"
export LTTNG_MANPATH
# Use system man instead of /usr/bin/man.
LTTNG_MAN_BIN_PATH=$(type -p man)
export LTTNG_MAN_BIN_PATH
exec "$@"