Ensure that latest version tag is always used, despite git's sorting sucking.

This commit is contained in:
Chris 2013-01-14 13:55:22 +00:00
parent 48eae1bb29
commit 8f9ca4cac0

View File

@ -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 -