Selaa lähdekoodia

add version script

Chris Mullins 8 vuotta sitten
vanhempi
commit
531c0bab35
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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)