diff --git a/makedocs.sh b/makedocs.sh index 86df989..5316252 100755 --- a/makedocs.sh +++ b/makedocs.sh @@ -1,7 +1,7 @@ #!/bin/bash # Get the latest tag annotation out of git. -VERS=`git tag -n1 | tail -n1 | perl -e '$tag = ; $tag =~ s/^.*?\s\s+(.*)$/$1/; print $tag;'` +VERS=`git tag -n1 | sort -V | tail -n1 | perl -e '$tag = ; $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 -