From 8f9ca4cac0964711d089d193339ca28059b5cd04 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 14 Jan 2013 13:55:22 +0000 Subject: [PATCH] Ensure that latest version tag is always used, despite git's sorting sucking. --- makedocs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -