made python optional for no real reason

This commit is contained in:
rexy712
2018-12-14 18:42:59 -08:00
parent cf45749af2
commit 80eda899e7
4 changed files with 58 additions and 12 deletions

7
scripts/git_branch_name.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
output="$(git rev-parse --abbrev-ref HEAD)"
if test -n "$output";then
echo "#define GIT_BRANCH_NAME \"$output\" //test"
fi

7
scripts/git_commit_hash.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
output="$(git describe --always --dirty --abbrev --match="NeVeRmAtCh")"
if test -n output;then
echo "#define GIT_COMMIT_HASH \"$output\""
fi

9
scripts/git_tag_name.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
output="$(git tag --points-at HEAD)"
if test -n "$output";then
if test "${output:0:1}" = "v" || test "${output:0:1}" = "V";then
echo "#define GIT_TAG_NAME \"${output:1}\""
fi
fi