Files
MapLibreParticleLab/ios/docs/install_docs.sh
2015-03-22 00:53:36 -07:00

19 lines
442 B
Bash
Executable File

#!/bin/sh
if [ -z `which appledoc` ]; then
echo "Unable to find appledoc. Consider installing it from source or Homebrew."
exit 1
fi
VERSION=$( git tag | grep ^[0-9] | sort -r | sed -n '1p' )
echo "Creating new docs for $VERSION..."
echo
appledoc \
--output /tmp/`uuidgen` \
--project-name "Mapbox GL $VERSION" \
--project-company Mapbox \
--create-docset \
--company-id com.mapbox \
../../include/mbgl/ios