File: extra-version-name.sh

package info (click to toggle)
lttng-modules 2.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,808 kB
  • sloc: ansic: 74,851; sh: 548; makefile: 62
file content (14 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only)
# SPDX-FileCopyrightText: 2018 EfficiOS Inc.

# First argument is the path to the lttng modules sources.
TOP_LTTNG_MODULES_DIR="$1"

EXTRA_VERSION_NAME="$(sed -n '1p' "${TOP_LTTNG_MODULES_DIR}/extra_version/name" 2> /dev/null)"

if [ "x${EXTRA_VERSION_NAME}" != "x" ]; then
	echo "${EXTRA_VERSION_NAME}"
else
	echo "0"
fi