From 33b1b0a47b6bf2b9d6dd8a33e1d43b0715b37e8a Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Mon, 4 May 2015 16:07:29 -0700 Subject: [PATCH] improvements to source install docs script --- ios/docs/install_docs.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh index cd6fcdda7..c74c6bcd2 100755 --- a/ios/docs/install_docs.sh +++ b/ios/docs/install_docs.sh @@ -5,13 +5,15 @@ if [ -z `which appledoc` ]; then exit 1 fi -VERSION=$( git tag | grep ^[0-9] | sort -r | sed -n '1p' ) +OUTPUT="/tmp/`uuidgen`" + +VERSION=$( git tag -l ios\* --sort -v:refname | sed -n '1p' | sed 's/ios-v//' ) echo "Creating new docs for $VERSION..." echo appledoc \ - --output /tmp/`uuidgen` \ - --project-name "Mapbox GL $VERSION" \ + --output $OUTPUT \ + --project-name "Mapbox GL for iOS $VERSION" \ --project-company Mapbox \ --create-docset \ --company-id com.mapbox \