mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-15 12:50:42 +02:00
5 lines
245 B
Bash
5 lines
245 B
Bash
|
|
# generate_commit_hash.sh
|
||
|
|
echo "#pragma once" > commit_hash.h
|
||
|
|
echo "#define GIT_COMMIT_HASH \"$(git rev-parse HEAD)\"" >> commit_hash.h
|
||
|
|
echo "#define GIT_DESCRIBE \"$(git describe --tags --long --always --match=v*.* --dirty)\"" >> commit_hash.h
|