Changed version detection to work at compile time instead of configure time
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/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 + '"')
|
||||
Reference in New Issue
Block a user