rexbacklight/scripts/git_commit_hash.sh

11 lines
224 B
Bash
Executable File

#!/bin/sh
output="$(git describe --always --dirty --abbrev --match="NeVeRmAtCh")"
if test -n output;then
echo "#define GIT_COMMIT_HASH \"$output\""
if grep -q "dirty" <<< "$output";then
echo "#define GIT_DIRTY"
fi
fi