mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-04 12:00:27 +00:00
8 lines
167 B
Python
8 lines
167 B
Python
import subprocess
|
|
|
|
revision = (
|
|
subprocess.check_output(["git", "rev-parse", "HEAD"])
|
|
.strip()
|
|
.decode("utf-8")
|
|
)
|
|
print("-DFW_GIT_REV='\"%s\"'" % revision) |