mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-19 13:18:20 +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
|