Created
January 25, 2012 05:08
-
-
Save quellish/1674852 to your computer and use it in GitHub Desktop.
AppleDoc docset generator script for xcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This can be inserted as a Run Script build phase or a Build Rule in your Xcode project. | |
# You can set this to whatever you like. | |
DOCUMENTATION_DIR="Documentation" | |
BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${BUILD_ROOT}/${INFOPLIST_PATH}") | |
# DOCUMENTATION_FOLDER_PATH | |
if [ -e /usr/local/bin/appledoc ] ; then | |
/usr/local/bin/appledoc --project-name $PRODUCT_NAME --output $DOCUMENTATION_DIR --logformat xcode --exit-threshold 2 --verbose xcode --docset-bundle-filename "$BUNDLE_ID.$PRODUCT_NAME.docset" . | |
else | |
echo "AppleDoc is not installed in /usr/local/bin , you can download it from https://github.com/tomaz/appledoc" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment