Commit | Line | Data |
---|---|---|
101215b7 | 1 | #!/bin/sh |
b7cdc182 | 2 | # SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only) |
101215b7 MJ |
3 | |
4 | # First argument is the path to the lttng modules sources. | |
5 | TOP_LTTNG_MODULES_DIR="$1" | |
6 | ||
7 | EXTRA_VERSION_NAME="$(sed -n '1p' "${TOP_LTTNG_MODULES_DIR}/extra_version/name" 2> /dev/null)" | |
8 | ||
9 | if [ "x${EXTRA_VERSION_NAME}" != "x" ]; then | |
10 | echo "${EXTRA_VERSION_NAME}" | |
11 | else | |
12 | echo "0" | |
13 | fi |