Created
April 9, 2013 19:03
-
-
Save djromero/5348426 to your computer and use it in GitHub Desktop.
GenerateDocSet.sh
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
#!/bin/sh | |
appledoc=`which appledoc` | |
TMPDOCS=/Volumes/mem/appledoc-tmp | |
if [ "x${SRCROOT}" != "x" ];then | |
ROOT="${SRCROOT}" | |
else | |
ROOT=/path/to/project | |
fi | |
if [ "${appledoc}" == "" ] | |
then | |
echo Could not find appledoc binary. | |
exit 1 | |
fi | |
echo Generating docs for \"${ROOT}\" | |
${appledoc} --project-name "Project Name" \ | |
--project-company "Example Company" \ | |
--company-id "com.example" \ | |
--docset-desc "Project Description." \ | |
--logformat xcode \ | |
--output $TMPDOCS \ | |
--ignore "3rd Party" \ | |
--ignore "Distribution" \ | |
--explicit-crossref \ | |
--include "$ROOT/../Documentation/Guides" \ | |
--ignore "3rd Party" \ | |
--index-desc "$ROOT/../Documentation/README-template.markdown" \ | |
"${ROOT}" | |
exit_code=$? | |
if [ $exit_code -eq 0 ];then | |
cat $TMPDOCS/docset-installed.txt | |
fi | |
exit $exit_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment