mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-12 01:10:25 +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) |