diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-06-19 11:20:19 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-06-22 10:41:05 -0700 |
commit | 555e1f141e58b5defc3e1b240c6bb2896f0a6cdf (patch) | |
tree | 4aef4fbd64bcbbc3182dfc7f51b94066b739a291 | |
parent | 1779dd870dec2af6074afeaa675deb1e3b4abb5a (diff) | |
download | qtlocation-mapboxgl-555e1f141e58b5defc3e1b240c6bb2896f0a6cdf.tar.gz |
Substitute lightweight generics macros in docset
Followup to 91641ffb01dcf8d303b13216797bb41d1f770124 for #1711: also preprocess the generics macros when generating a docset.
-rwxr-xr-x | ios/docs/install_docs.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh index eea974985e..1a5f97a8d3 100755 --- a/ios/docs/install_docs.sh +++ b/ios/docs/install_docs.sh @@ -11,18 +11,24 @@ VERSION=$( git tag --sort -v:refname | grep -v '\-rc.' | sed -n '1p' | sed 's/^v echo "Creating new docs for ${VERSION}..." echo -README="/tmp/GL-README.md" +rm -rf /tmp/mbgl +mkdir -p /tmp/mbgl/ +README=/tmp/mbgl/GL-README.md cat ../README.md > ${README} echo >> ${README} echo -n "#" >> ${README} cat ../../CHANGELOG.md >> ${README} - +# Copy headers to a temporary location where we can substitute macros that appledoc doesn't understand. +cp -r ../../include/mbgl/ios /tmp/mbgl +perl \ + -pi \ + -e 's/NS_(?:(MUTABLE)_)?(ARRAY|SET|DICTIONARY)_OF\(\s*(.+?)\s*\)/NS\L\u$1\u$2\E <$3>/g' \ + /tmp/mbgl/ios/*.h appledoc \ --output ${OUTPUT} \ --project-name "Mapbox GL for iOS ${VERSION}" \ --project-company Mapbox \ --create-docset \ --company-id com.mapbox \ - --ignore ../../include/mbgl/ios/private \ --index-desc ${README} \ - ../../include/mbgl/ios + /tmp/mbgl/ios |