summaryrefslogtreecommitdiff
path: root/ios/docs/install_docs.sh
blob: c74c6bcd2ee55a9f03ae3726c155c1278b11a4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ -z `which appledoc` ]; then
    echo "Unable to find appledoc. Consider installing it from source or Homebrew."
    exit 1
fi

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 $OUTPUT \
    --project-name "Mapbox GL for iOS $VERSION" \
    --project-company Mapbox \
    --create-docset \
    --company-id com.mapbox \
    ../../include/mbgl/ios