blob: cb4e2fa88afb1e69676d7f175075ef357a13c24e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -u
TAG="$(git describe --always --tags --long --dirty 2> /dev/null)"
if [[ "$TAG" == "" ]]; then
TAG="unknown"
fi
cat <<END
#include <string>
std::string GIT_TAG = "$TAG";
END
|