diff --git a/git_rev_macro.py b/git_rev_macro.py new file mode 100644 index 0000000..850e953 --- /dev/null +++ b/git_rev_macro.py @@ -0,0 +1,8 @@ +import subprocess + +revision = ( + subprocess.check_output(["git", "rev-parse", "HEAD"]) + .strip() + .decode("utf-8") +) +print("-DFW_GIT_REV='\"%s\"'" % revision) \ No newline at end of file