From 5d516c36034a5f18f91c1377a1cd49a3f532b204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Fri, 22 Jan 2016 11:36:27 -0800 Subject: [PATCH] [ios] Split changelog out from readme CocoaPods dings this pod for not having a separate changelog. --- ios/docs/pod-README.md | 8 +------- platform/ios/scripts/package.sh | 7 +------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/ios/docs/pod-README.md b/ios/docs/pod-README.md index 36b9c3771..5f4e6cbe2 100644 --- a/ios/docs/pod-README.md +++ b/ios/docs/pod-README.md @@ -2,16 +2,10 @@ The Mapbox iOS SDK is an open-source framework for embedding interactive map views with scalable, customizable vector maps into Cocoa Touch applications on iOS 7.0 and above using Objective-C, Swift, or Interface Builder. It takes stylesheets that conform to the [Mapbox GL Style Specification](https://github.com/mapbox/mapbox-gl-style-spec/), applies them to vector tiles that conform to the [Mapbox Vector Tile Specification](https://github.com/mapbox/vector-tile-spec), and renders them using OpenGL. -For more information, check out [our online overview](https://www.mapbox.com/ios-sdk/). +For more information, check out the [Mapbox iOS SDK homepage](https://www.mapbox.com/ios-sdk/) and the [full changelog](https://github.com/mapbox/mapbox-gl-native/blob/master/CHANGELOG.md) online. [![](https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/screenshot.png)]() -## Changes in version {{VERSION}} - -{{CHANGES}} - -See the [full changelog](https://github.com/mapbox/mapbox-gl-native/blob/master/CHANGELOG.md) online. - ## Installation The Mapbox iOS SDK may be installed as either a dynamic framework or a static framework. (To reduce the download size, the static framework is omitted from some distributions; you may need to download the full package from the [release page](https://github.com/mapbox/mapbox-gl-native/releases/).) diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh index bbd92e3be..aabc48a6f 100755 --- a/platform/ios/scripts/package.sh +++ b/platform/ios/scripts/package.sh @@ -225,9 +225,6 @@ rm -rf /tmp/mbgl mkdir -p /tmp/mbgl/ README=/tmp/mbgl/README.md cp ios/docs/pod-README.md "${README}" -CHANGES=/tmp/mbgl/CHANGES.md -# http://stackoverflow.com/a/4858011/4585461 -sed -n -e '/^## iOS/{' -e ':a' -e 'n' -e '/^##/q' -e 'p' -e 'ba' -e '}' CHANGELOG.md > "${CHANGES}" if [[ ${BUILD_DYNAMIC} == false ]]; then sed -i '' -e '/{{DYNAMIC}}/,/{{\/DYNAMIC}}/d' "${README}" fi @@ -235,13 +232,11 @@ if [[ ${BUILD_STATIC} == false ]]; then sed -i '' -e '/{{STATIC}}/,/{{\/STATIC}}/d' "${README}" fi sed -i '' \ - -e "s/{{VERSION}}/${RELEASE_VERSION}/" \ - -e "/{{CHANGES}}/r${CHANGES}" \ - -e 's/{{CHANGES}}//g' \ -e '/{{DYNAMIC}}/d' -e '/{{\/DYNAMIC}}/d' \ -e '/{{STATIC}}/d' -e '/{{\/STATIC}}/d' \ "${README}" cp ${README} "${OUTPUT}" +sed -n -e '/^## iOS/,$p' CHANGELOG.md > "${OUTPUT}/CHANGELOG.md" jazzy \ --sdk iphonesimulator \