Ensure that latest version tag is always used, despite git's sorting sucking.
This commit is contained in:
parent
48eae1bb29
commit
8f9ca4cac0
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the latest tag annotation out of git.
|
||||
VERS=`git tag -n1 | tail -n1 | perl -e '$tag = <STDIN>; $tag =~ s/^.*?\s\s+(.*)$/$1/; print $tag;'`
|
||||
VERS=`git tag -n1 | sort -V | tail -n1 | perl -e '$tag = <STDIN>; $tag =~ s/^.*?\s\s+(.*)$/$1/; print $tag;'`
|
||||
|
||||
# Generate the documentation with the project number updated with the tag.
|
||||
(cat supportfiles/Doxyfile; echo "PROJECT_NUMBER = \"$VERS\"") | doxygen -
|
||||
|
Loading…
x
Reference in New Issue
Block a user