Cleanup: modinfo keys
[deliverable/lttng-modules.git] / extra-version-name.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1)
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
This page took 0.034712 seconds and 5 git commands to generate.