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