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. --- Makefile | 2 +- get-git-tag | 15 --------------- tools/get-git-tag | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100755 get-git-tag create mode 100755 tools/get-git-tag diff --git a/Makefile b/Makefile index 449455e..28dd7f6 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ clean: build/git-tag.cpp: @mkdir -p $(dir $@) - ./get-git-tag > $@ + tools/get-git-tag > $@ .PHONY: build/git-tag.cpp include $(shell find -type f -name \*.d) diff --git a/get-git-tag b/get-git-tag deleted file mode 100755 index cb4e2fa..0000000 --- a/get-git-tag +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 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