diff options
Diffstat (limited to 'ios/docs')
-rwxr-xr-x | ios/docs/install_docs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh index 99f2a5d1e9..20d78748fa 100755 --- a/ios/docs/install_docs.sh +++ b/ios/docs/install_docs.sh @@ -7,8 +7,8 @@ fi OUTPUT="/tmp/`uuidgen`" -VERSION=$( git tag --sort -v:refname | grep -v '\-rc.' | sed -n '1p' | sed 's/^v//' ) -echo "Creating new docs for ${VERSION}..." +DOCS_VERSION=$( git tag | grep ^ios | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' ) +echo "Creating new docs for ${DOCS_VERSION}..." echo rm -rf /tmp/mbgl @@ -26,7 +26,7 @@ perl \ /tmp/mbgl/ios/*.h appledoc \ --output ${OUTPUT} \ - --project-name "Mapbox iOS SDK ${VERSION}" \ + --project-name "Mapbox iOS SDK ${DOCS_VERSION}" \ --project-company Mapbox \ --create-docset \ --company-id com.mapbox \ |