Browse Source

add version script

Chris Mullins 8 years ago
parent
commit
531c0bab35
1 changed files with 5 additions and 0 deletions
  1. 5 0
      get_version.py

+ 5 - 0
get_version.py

@@ -0,0 +1,5 @@
+from subprocess import check_output
+
+version = check_output(["git", "describe", "--always"]).rstrip()
+
+print("-DMILIGHT_HUB_VERSION=%s" % version)