Explorar el Código

add version script

Chris Mullins hace 8 años
padre
commit
531c0bab35
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)