ARTOO: Use git describe for version strings

This commit is contained in:
Matt 2018-01-01 12:49:21 -05:00
parent 8ba6feb817
commit a8991811d3

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# this command should really execute:
# git describe --tags ## Returns the most recent release tag string
# but we don't have any version tags in the repo yet, so lets fake it: ## If the head is the most recent tag, it will display only the tag such as v3.0.0
echo v3.0.0 ## If there are untagged commits after the last tag, it will display something v3.0.0-2-876FH
git describe --tags