summaryrefslogtreecommitdiff
path: root/platform/ios/scripts
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-03-25 10:18:04 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-03-25 12:24:14 -0700
commit8cdb4f74e13085f438c22f940cec198c0dd85492 (patch)
treefb11eb6db3dfc72bbe66345eabecba8da31805ca /platform/ios/scripts
parent75913a5dae501e6e513980241d5b5cde19b54a85 (diff)
downloadqtlocation-mapboxgl-8cdb4f74e13085f438c22f940cec198c0dd85492.tar.gz
[ios] Fixed changelog processing
Fixed a regression introduced in #4466 in which the changelog is essentially empty. Fixes #4469.
Diffstat (limited to 'platform/ios/scripts')
-rwxr-xr-xplatform/ios/scripts/document.sh2
-rwxr-xr-xplatform/ios/scripts/package.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/scripts/document.sh b/platform/ios/scripts/document.sh
index e52176b08b..4890aca15c 100755
--- a/platform/ios/scripts/document.sh
+++ b/platform/ios/scripts/document.sh
@@ -27,7 +27,7 @@ README=/tmp/mbgl/README.md
cp platform/ios/docs/doc-README.md "${README}"
# http://stackoverflow.com/a/4858011/4585461
echo "## Changes in version ${RELEASE_VERSION}" >> "${README}"
-sed -n -e '/^## iOS/{' -e ':a' -e 'n' -e '/^##/q' -e 'p' -e 'ba' -e '}' CHANGELOG.md >> "${README}"
+sed -n -e '/^## /{' -e ':a' -e 'n' -e '/^##/q' -e 'p' -e 'ba' -e '}' platform/ios/CHANGELOG.md >> "${README}"
rm -rf ${OUTPUT}
mkdir -p ${OUTPUT}
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh
index c4357c45de..9f843785e0 100755
--- a/platform/ios/scripts/package.sh
+++ b/platform/ios/scripts/package.sh
@@ -237,7 +237,7 @@ if [[ ${BUILD_DYNAMIC} == true ]]; then
plutil -replace MGLCommitHash -string "${HASH}" "${OUTPUT}/dynamic/${NAME}.framework/Info.plist"
cp -pv platform/ios/framework/strip-frameworks.sh "${OUTPUT}/dynamic/${NAME}.framework/strip-frameworks.sh"
fi
-sed -n -e '/^## iOS/,$p' CHANGELOG.md > "${OUTPUT}/CHANGELOG.md"
+sed -n -e '/^## /,$p' platform/ios/CHANGELOG.md > "${OUTPUT}/CHANGELOG.md"
rm -rf /tmp/mbgl
mkdir -p /tmp/mbgl/