improvements to source install docs script

This commit is contained in:
Justin R. Miller
2015-05-04 16:07:29 -07:00
parent af8f060a0d
commit 33b1b0a47b

View File

@@ -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 \