Merge "Use "sort -V" for tags when building docs"
This commit is contained in:
commit
77fc7f08db
@ -41,11 +41,11 @@ elif `echo $ZUUL_REFNAME | grep refs/tags/ >/dev/null` ; then
|
|||||||
if echo $ZUUL_PROJECT | grep 'python-.*client' ; then
|
if echo $ZUUL_PROJECT | grep 'python-.*client' ; then
|
||||||
# This is a hack to ignore the year.release tags in python-*client
|
# This is a hack to ignore the year.release tags in python-*client
|
||||||
# projects.
|
# projects.
|
||||||
LATEST=`git tag | sed -n -e '/^2012\..*$/d' -e '/^\([0-9]\+\.\?\)\+$/p' | sort -n | tail -1`
|
LATEST=`git tag | sed -n -e '/^2012\..*$/d' -e '/^\([0-9]\+\.\?\)\+$/p' | sort -V | tail -1`
|
||||||
else
|
else
|
||||||
# Take all tags of the form (number.)+, sort them, then take the
|
# Take all tags of the form (number.)+, sort them, then take the
|
||||||
# largest
|
# largest
|
||||||
LATEST=`git tag | sed -n '/^\([0-9]\+\.\?\)\+$/p' | sort -n | tail -1`
|
LATEST=`git tag | sed -n '/^\([0-9]\+\.\?\)\+$/p' | sort -V | tail -1`
|
||||||
fi
|
fi
|
||||||
if [ "$TAG" = "$LATEST" ] ; then
|
if [ "$TAG" = "$LATEST" ] ; then
|
||||||
# Copy the docs into a subdir if this is a tagged build
|
# Copy the docs into a subdir if this is a tagged build
|
||||||
|
Loading…
Reference in New Issue
Block a user