Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 69 lines (56 sloc) 1.935 kb
0bd6005 Stig Brautaset new target to generate release disk image
authored
1 #!/bin/sh
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
2 #
3 # Running this script installs the SBJson documentation so that it
4 # integrates with Xcode. It requires Doxygen to be installed.
5 #
6 # See also:
7 # http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
8 #
0bd6005 Stig Brautaset new target to generate release disk image
authored
9
10 set -x
11
12 VERSION=$(agvtool mvers -terse1)
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
13 TMPDIR=$(mktemp -d /tmp/$(basename $0).XXXXXX) || exit 1
14 DOXYFILE=$TMPDIR/doxygen.config
0bd6005 Stig Brautaset new target to generate release disk image
authored
15 DOXYGEN=/Applications/Doxygen.app/Contents/Resources/doxygen
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
16 PROJECT=$(echo *.xcodeproj | cut -d. -f1)
0bd6005 Stig Brautaset new target to generate release disk image
authored
17
18 if ! test -x $DOXYGEN ; then
19 echo "*** Install Doxygen to get documentation generated for you automatically ***"
20 exit 1
21 fi
22
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
23 # Create a doxygen configuration file with only the settings we care
24 # about
2da1075 Stig Brautaset Improved documentation.
authored
25 $DOXYGEN -g - > $DOXYFILE
0bd6005 Stig Brautaset new target to generate release disk image
authored
26
27 cat <<EOF >> $DOXYFILE
28
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
29 PROJECT_NAME = $PROJECT
0bd6005 Stig Brautaset new target to generate release disk image
authored
30 PROJECT_NUMBER = $VERSION
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
31 OUTPUT_DIRECTORY = $TMPDIR
32 INPUT = Classes
0bd6005 Stig Brautaset new target to generate release disk image
authored
33 FILE_PATTERNS = *.h *.m
34
35 HIDE_UNDOC_MEMBERS = YES
36 HIDE_UNDOC_CLASSES = YES
37 HIDE_UNDOC_RELATIONS = YES
38 REPEAT_BRIEF = NO
6d46439 Stig Brautaset Version 2.2alpha4
authored
39 CASE_SENSE_NAMES = YES
40 INLINE_INHERITED_MEMB = YES
41 SHOW_FILES = NO
42 SHOW_INCLUDE_FILES = NO
0bd6005 Stig Brautaset new target to generate release disk image
authored
43 GENERATE_LATEX = NO
ed2ce03 Stig Brautaset remove the search ability from the generated api docs
authored
44 SEARCHENGINE = NO
0bd6005 Stig Brautaset new target to generate release disk image
authored
45 GENERATE_HTML = YES
46 GENERATE_DOCSET = YES
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
47 DOCSET_FEEDNAME = "$PROJECT API Documentation"
0bd6005 Stig Brautaset new target to generate release disk image
authored
48 DOCSET_BUNDLE_ID = org.brautaset.$PROJECT
49
50 EOF
51
52 # Run doxygen on the updated config file.
53 # doxygen creates a Makefile that does most of the heavy lifting.
54 $DOXYGEN $DOXYFILE
55
56 # make will invoke docsetutil. Take a look at the Makefile to see how this is done.
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
57 make -C $TMPDIR/html install
0bd6005 Stig Brautaset new target to generate release disk image
authored
58
82715b5 Stig Brautaset Remove unecessary rm -f
authored
59 # Construct a temporary applescript file to tell Xcode to load a
60 # docset.
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
61 cat <<EOF > $TMPDIR/loadDocSet.scpt
0bd6005 Stig Brautaset new target to generate release disk image
authored
62 tell application "Xcode"
63 load documentation set with path "/Users/$USER/Library/Developer/Shared/Documentation/DocSets/org.brautaset.${PROJECT}.docset/"
64 end tell
65 EOF
66
67 # Run the load-docset applescript command.
c591960 Stig Brautaset Make the InstallDocumentation.sh script run outside Xcode, and document ...
authored
68 osascript $TMPDIR/loadDocSet.scpt
Something went wrong with that request. Please try again.