[ios] patch up iOS version-deducing scripts

This commit is contained in:
Justin R. Miller
2015-10-01 14:23:23 -07:00
parent 212c7ed8da
commit a0244601ca
2 changed files with 4 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ fi
OUTPUT="/tmp/`uuidgen`"
VERSION=$( git tag --sort -v:refname | grep -v '\-rc.' | sed -n '1p' | sed 's/^v//' )
echo "Creating new docs for ${VERSION}..."
DOCS_VERSION=$( git tag | grep ^ios | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' )
echo "Creating new docs for ${DOCS_VERSION}..."
echo
rm -rf /tmp/mbgl
@@ -26,7 +26,7 @@ perl \
/tmp/mbgl/ios/*.h
appledoc \
--output ${OUTPUT} \
--project-name "Mapbox iOS SDK ${VERSION}" \
--project-name "Mapbox iOS SDK ${DOCS_VERSION}" \
--project-company Mapbox \
--create-docset \
--company-id com.mapbox \

View File

@@ -111,7 +111,7 @@ if [ -z `which appledoc` ]; then
fi
DOCS_OUTPUT="${OUTPUT}/static/Docs"
git fetch --tags
DOCS_VERSION=$( git tag | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' )
DOCS_VERSION=$( git tag | grep ^ios | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' )
rm -rf /tmp/mbgl
mkdir -p /tmp/mbgl/
README=/tmp/mbgl/README.md