From 308a7b72731d0d94b7931cee5963193bf143bb72 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 25 Jun 2022 10:15:54 -0700 Subject: Move get-git-tag to a tools subdirectory. --- tools/get-git-tag | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/get-git-tag (limited to 'tools') diff --git a/tools/get-git-tag b/tools/get-git-tag new file mode 100755 index 0000000..cb4e2fa --- /dev/null +++ b/tools/get-git-tag @@ -0,0 +1,15 @@ +#!/bin/bash + +set -u + +TAG="$(git describe --always --tags --long --dirty 2> /dev/null)" + +if [[ "$TAG" == "" ]]; then + TAG="unknown" +fi + +cat < + +std::string GIT_TAG = "$TAG"; +END -- cgit v1.2.3