diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-15 13:18:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-15 13:18:21 -0800 |
commit | 4adcdac7b5eeca79411e877ef11d5248f4107963 (patch) | |
tree | f9ce3ea04138e74c68ebee3a52bd97128ffb6cf7 /platform/macos/scripts/document.sh | |
parent | 15caf0fd6362c525adc0502696226801c6622b1c (diff) | |
download | qtlocation-mapboxgl-4adcdac7b5eeca79411e877ef11d5248f4107963.tar.gz |
[macos] Upgrade macOS deployment and distribution (#7649)macos-v0.3.0-rc.1
* [macos] Updated deployment scripts
Ported fixes from #6581 and #6740.
* [macos] Acknowledge AppleScript support
* [macos] Prepared for published documentation
Also added link to Dash docset.
* [macos] Added CocoaPods podspecs
Ported from #5653.
* [macos] Rewrote readme; updated screenshot
* [macos] Include setup instructions in standalone docs
Diffstat (limited to 'platform/macos/scripts/document.sh')
-rwxr-xr-x | platform/macos/scripts/document.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/platform/macos/scripts/document.sh b/platform/macos/scripts/document.sh index 1ca65540ed..69c9aaa871 100755 --- a/platform/macos/scripts/document.sh +++ b/platform/macos/scripts/document.sh @@ -22,15 +22,21 @@ RELEASE_VERSION=$( echo ${SHORT_VERSION} | sed -e 's/^macos-v//' -e 's/-.*//' ) rm -rf /tmp/mbgl mkdir -p /tmp/mbgl/ README=/tmp/mbgl/README.md -cp platform/macos/docs/doc-README.md "${README}" +if [[ ${STANDALONE:-} ]]; then + cp platform/macos/docs/pod-README.md "${README}" + perl -pi -e 's|https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/platform/macos/docs/||' \ + "${README}" +else + cp platform/macos/docs/doc-README.md "${README}" +fi # http://stackoverflow.com/a/4858011/4585461 -echo "## Changes in version ${RELEASE_VERSION}" >> "${README}" +echo "## Changes in [version ${RELEASE_VERSION}](https://github.com/mapbox/mapbox-gl-native/releases/tag/${BRANCH})" >> "${README}" sed -n -e '/^## /{' -e ':a' -e 'n' -e '/^## /q' -e 'p' -e 'ba' -e '}' platform/macos/CHANGELOG.md >> "${README}" rm -rf ${OUTPUT} mkdir -p ${OUTPUT} -cp platform/macos/screenshot.png "${OUTPUT}" +cp -r platform/macos/docs/img "${OUTPUT}/img" jazzy \ --config platform/macos/jazzy.yml \ |