Skip to content

Instantly share code, notes, and snippets.

@djromero
Created April 9, 2013 19:03
Show Gist options
  • Save djromero/5348426 to your computer and use it in GitHub Desktop.
Save djromero/5348426 to your computer and use it in GitHub Desktop.
GenerateDocSet.sh
#!/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