Cleanup: move scripts to subdirectory
[lttng-modules.git] / extra-version-git.sh
diff --git a/extra-version-git.sh b/extra-version-git.sh
deleted file mode 100755 (executable)
index e5a3e17..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1)
-
-# First argument is the path to the lttng modules sources.
-TOP_LTTNG_MODULES_DIR="$1"
-
-GIT_VERSION="0"
-
-if test -x "$(which git 2>&1;true)" && test -r "${TOP_LTTNG_MODULES_DIR}/.git"; then
-       GIT_VERSION_STR="$(cd "${TOP_LTTNG_MODULES_DIR}" && git describe --tags --dirty)"
-       GIT_CURRENT_TAG="$(cd "${TOP_LTTNG_MODULES_DIR}" && git describe --tags --exact-match --match="v[0-9]*" HEAD 2> /dev/null)"
-
-       GIT_VERSION="${GIT_VERSION_STR}"
-
-       if ! echo "${GIT_VERSION_STR}" | grep -- "-dirty" >/dev/null && test "x$GIT_CURRENT_TAG" != "x"; then
-               GIT_VERSION="0"
-       fi
-fi
-
-echo "${GIT_VERSION}"
This page took 0.023737 seconds and 4 git commands to generate.