summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-22 11:36:27 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-22 14:45:58 -0800
commit5d516c36034a5f18f91c1377a1cd49a3f532b204 (patch)
treeb24d00e1dddadf591e3431530d94363fba5d63c9
parent9427ddd373afd5205ba5d6d24dd5e2ff0a5a5fff (diff)
downloadqtlocation-mapboxgl-5d516c36034a5f18f91c1377a1cd49a3f532b204.tar.gz
[ios] Split changelog out from readme
CocoaPods dings this pod for not having a separate changelog.
-rw-r--r--ios/docs/pod-README.md8
-rwxr-xr-xplatform/ios/scripts/package.sh7
2 files changed, 2 insertions, 13 deletions
diff --git a/ios/docs/pod-README.md b/ios/docs/pod-README.md
index 36b9c37713..5f4e6cbe27 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 bbd92e3bef..aabc48a6f0 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 \