9 lines
268 B
Python
Executable File
9 lines
268 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import subprocess
|
|
|
|
output = subprocess.run(['git', 'describe', "--always", "--dirty", "--abbrev", "--match=\"NeVeRmAtCh\""], stdout=subprocess.PIPE).stdout.decode('utf-8').rstrip()
|
|
|
|
if output:
|
|
print("#define GIT_COMMIT_HASH " + '"' + output + '"')
|