/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.
  6. if [ ! -d Documentation ]
  7. then
  8. headerdoc2html -u -o Documentation MacFUSE.hdoc GMUserFileSystem.h GMFinderInfo.h GMResourceFork.h GMAppleDouble.h
  9. gatherheaderdoc Documentation index.html
  10. exit 0
  11. fi
  12. # We do have a Documentation directory. This probably has .svn subdirs,
  13. # which will mess up gatherheaderdoc. We do this ugly hack:
  14. if [ -d Documentation.tmp ]
  15. then
  16. echo "Error: Documentation.tmp exists. Where is your svn directory?"
  17. exit 1
  18. fi
  19. mv Documentation Documentation.tmp
  20. mkdir Documentation
  21. headerdoc2html -u -o Documentation MacFUSE.hdoc GMUserFileSystem.h GMFinderInfo.h GMResourceFork.h GMAppleDouble.h
  22. gatherheaderdoc Documentation index.html
  23. cp -r Documentation/ Documentation.tmp
  24. rm -rf Documentation
  25. mv Documentation.tmp Documentation