PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 1ms

/core/sdk-objc/gendoc.sh

http://macfuse.googlecode.com/
Shell | 26 lines | 18 code | 1 blank | 7 comment | 2 complexity | 1e47e9f15de6a9ea28b641b835c78d3c MD5 | raw file
 1#!/bin/bash
 2#
 3# Generates documentation for the Objective-C framework.
 4#
 5# If we don't have a documentation directory, just generate the docs.
 6if [ ! -d Documentation ]
 7then
 8  headerdoc2html -u -o Documentation MacFUSE.hdoc GMUserFileSystem.h GMFinderInfo.h GMResourceFork.h GMAppleDouble.h
 9  gatherheaderdoc Documentation index.html
10exit 0
11fi
12
13# We do have a Documentation directory. This probably has .svn subdirs, 
14# which will mess up gatherheaderdoc. We do this ugly hack:
15if [ -d Documentation.tmp ]
16then
17  echo "Error: Documentation.tmp exists. Where is your svn directory?"
18  exit 1
19fi
20mv Documentation Documentation.tmp
21mkdir Documentation
22headerdoc2html -u -o Documentation MacFUSE.hdoc GMUserFileSystem.h GMFinderInfo.h GMResourceFork.h GMAppleDouble.h
23gatherheaderdoc Documentation index.html
24cp -r Documentation/ Documentation.tmp
25rm -rf Documentation
26mv Documentation.tmp Documentation