tags sorting for doxygen generation

This commit is contained in:
Kolan Sh 2012-08-22 15:09:55 +04:00
parent 9535941198
commit ad060bad7b
1 changed files with 3 additions and 4 deletions

View File

@ -77,14 +77,13 @@ for i in `seq 0 $((n-1))`; do
LAST_TAG="" LAST_TAG=""
case ${type[$i]} in case ${type[$i]} in
Mercurial|Repository::Mercurial) Mercurial|Repository::Mercurial)
LAST_TAG=`hg tags --color never --noninteractive --quiet -R ${root_url[i]} 2>/dev/null | head -n2 | grep -v '^tip$' \ LAST_TAG=`hg tags --color never --noninteractive --quiet -R ${root_url[i]} 2>/dev/null \
| grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+'` | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+' | sort -Vr | head -n1`
;; ;;
Git|Repository::Git) Git|Repository::Git)
cd ${root_url[$i]} cd ${root_url[$i]}
[ $? != 0 ] && echo "cd ${root_url[$i]} failed" && continue [ $? != 0 ] && echo "cd ${root_url[$i]} failed" && continue
LAST_TAG=`git tag | tail -n1 \ LAST_TAG=`git tag | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+' | sort -Vr | head -n1`
| grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+'`
cd $TMP_PATH cd $TMP_PATH
;; ;;
esac esac