made python optional for no real reason
This commit is contained in:
7
scripts/git_branch_name.sh
Executable file
7
scripts/git_branch_name.sh
Executable 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
7
scripts/git_commit_hash.sh
Executable 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
9
scripts/git_tag_name.sh
Executable 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
|
||||
Reference in New Issue
Block a user