doc_makeall.sh.in 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. # -------------------------------------------------------------------------
  2. # Doxygen documentation batch
  3. # modified by S. Barre (Time-stamp: <2001-11-02 16:40:58 barre>
  4. # -------------------------------------------------------------------------
  5. # Path to several tools (_PROG to avoid the typical GZIP env var pb)
  6. # Example:
  7. # DOXYGEN_PROG=@DOXYGEN@ (INCLUDE(${CMAKE_ROOT}/Modules/FindDoxygen.cmake))
  8. # GZIP_PROG=@GZIP@ (INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake))
  9. # HHC_PROG=@HHC@ (INCLUDE(${CMAKE_ROOT}/Modules/FindHhc.cmake))
  10. # MV_PROG=@MV@ (INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake))
  11. # PERL_PROG=@PERL@ (INCLUDE(${CMAKE_ROOT}/Modules/FindPerl.cmake))
  12. # RM_PROG=@RM@ (INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake))
  13. # TAR_PROG=@TAR@ (INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake))
  14. # WGET_PROG=@WGET@ (INCLUDE(${CMAKE_ROOT}/Modules/FindWget.cmake))
  15. #
  16. export DOXYGEN_PROG=@DOXYGEN@ # Doxygen
  17. export GZIP_PROG=@GZIP@ # gzip (Unix-like 'gzip compressor')
  18. export HHC_PROG=@HHC@ # HTML Help Compiler
  19. export MV_PROG=@MV@ # mv (Unix-like 'move/rename files')
  20. export PERL_PROG=@PERL@ # Perl
  21. export RM_PROG=@RM@ # rm (Unix-like 'remove files')
  22. export TAR_PROG=@TAR@ # tar (Unix-like 'archiver')
  23. export WGET_PROG=@WGET@ # wget (remote file retrieval)
  24. # PROJECT_NAME:
  25. # Documentation/project name. Used in some of the resulting file names and
  26. # xrefs to uniquify two or more projects linked together through their
  27. # Doxygen's tag files. Mandatory for each documentation set.
  28. # Note: might be the same as the doxyfile's PROJECT_NAME
  29. # Example:
  30. # PROJECT_NAME=VTK
  31. #
  32. export PROJECT_NAME=CMake
  33. # SOURCE_DIR:
  34. # Source directory. The top directory of the source files.
  35. # Example:
  36. # SOURCE_DIR=@VTK_SOURCE_DIR@
  37. #
  38. export SOURCE_DIR=@CMAKE_SOURCE_DIR@
  39. # REL_PATH_TO_TOP:
  40. # Relative path from the top directory of the source files to the directory
  41. # (or top directory) holding the files to document. Useful if several parts
  42. # of the same source directory should be documented separately.
  43. # Example:
  44. # REL_PATH_TO_TOP=.
  45. # REL_PATH_TO_TOP=framework/src
  46. #
  47. export REL_PATH_TO_TOP=Source
  48. # INTERMEDIATE_DOX_DIR:
  49. # Directory where the intermediate Doxygen files should be stored (mainly
  50. # these headers files converted from the VTK format to the Doxygen format).
  51. # This directory is erased at the end of this script, unless you comment
  52. # the corresponding line.
  53. # DOXTEMP might be used to simplify the syntax.
  54. # Example:
  55. # DOXTEMP=DOXTEMP=@VTK_BINARY_DIR@/Utilities/Doxygen
  56. # INTERMEDIATE_DOX_DIR=$DOXTEMP/dox
  57. #
  58. export DOXTEMP=@CMAKE_BINARY_DIR@/Utilities/Doxygen
  59. export INTERMEDIATE_DOX_DIR=$DOXTEMP/dox
  60. # DOXYFILE:
  61. # Path to the Doxygen configuration file (i.e. doxyfile).
  62. # Example:
  63. # DOXYFILE=$DOXTEMP/doxyfile
  64. #
  65. export DOXYFILE=$DOXTEMP/doxyfile
  66. # OUTPUT_DIRECTORY ALLOW_ERASE_OUTPUT_DIRECTORY:
  67. # Path to the Doxygen output directory (where the resulting doc is stored).
  68. # Note: should be the same as your doxyfile's OUTPUT_DIRECTORY
  69. # If ON, allows the output directory to be erased when some advanced output
  70. # file have been produced (HTML Help for example).
  71. # Example:
  72. # OUTPUT_DIRECTORY=$DOXTEMP/doc
  73. # ALLOW_ERASE_OUTPUT_DIRECTORY=ON
  74. #
  75. export OUTPUT_DIRECTORY=$DOXTEMP/doc
  76. export ALLOW_ERASE_OUTPUT_DIRECTORY=ON
  77. # COMPILE_HTML_HELP RESULTING_HTML_HELP_FILE:
  78. # Compile the CHM (Compressed HTML) HTML Help file, name of the resulting
  79. # file. If set to ON and name is non-empty these options will actually
  80. # trigger the HTML-Help compiler to create the CHM. The resulting
  81. # file (usually index.chm) will be renamed to this name.
  82. # Note: if ON, the whole $OUTPUT_DIRECTORY will be erased at the end of
  83. # this script, since this file is considered to be one of the
  84. # advanced final output, unless ALLOW_ERASE_OUTPUT_DIRECTORY is OFF
  85. # Note: your doxyfile should be configured to enable HTML Help creation
  86. # (using GENERATE_HTML = YES, GENERATE_HTMLHELP = YES)
  87. # Example:
  88. # COMPILE_HTML_HELP=ON
  89. # COMPILE_HTML_HELP=@DOCUMENTATION_HTML_HELP@
  90. # RESULTING_HTML_HELP_FILE=$DOXTEMP/vtk4.chm
  91. # RESULTING_HTML_HELP_FILE=$DOXTEMP/$PROJECT_NAME.chm
  92. #
  93. export COMPILE_HTML_HELP=@DOCUMENTATION_HTML_HELP@
  94. export RESULTING_HTML_HELP_FILE=$DOXTEMP/$PROJECT_NAME.chm
  95. # CREATE_HTML_TARZ_ARCHIVE RESULTING_HTML_TARZ_ARCHIVE_FILE:
  96. # Create a compressed (gzip) tar archive of the html directory (located
  97. # under the OUTPUT_DIRECTORY), and name of the resulting archive file.
  98. # Note: your doxyfile should be configured to enable HTML creation
  99. # (using GENERATE_HTML = YES)
  100. # Example:
  101. # CREATE_HTML_TARZ_ARCHIVE=ON
  102. # CREATE_HTML_TARZ_ARCHIVE=@DOCUMENTATION_HTML_TARZ@
  103. # RESULTING_HTML_TARZ_ARCHIVE_FILE=$DOXTEMP/vtk4-html.tar.gz
  104. # RESULTING_HTML_TARZ_ARCHIVE_FILE=$DOXTEMP/$PROJECT_NAME-html.tar.gz
  105. #
  106. export CREATE_HTML_TARZ_ARCHIVE=@DOCUMENTATION_HTML_TARZ@
  107. export RESULTING_HTML_TARZ_ARCHIVE_FILE=$DOXTEMP/$PROJECT_NAME-html.tar.gz
  108. # ----------------------------------------------------------------------------
  109. # Create the Doxygen doc.
  110. if test "x$DOXYGEN_PROG" != "xNOTFOUND" ; then
  111. if test "x$RM_PROG" != "xNOTFOUND" ; then
  112. $RM_PROG -fr $OUTPUT_DIRECTORY
  113. fi
  114. $DOXYGEN_PROG $DOXYFILE
  115. fi
  116. # ----------------------------------------------------------------------------
  117. # Create the CHM HTML HELP doc.
  118. if test "x$COMPILE_HTML_HELP" == "xON" ; then
  119. if test "x$RESULTING_HTML_HELP_FILE" != "x" ; then
  120. cd $OUTPUT_DIRECTORY/html
  121. if test "x$HHC_PROG" != "xNOTFOUND" ; then
  122. $HHC_PROG index.hhp
  123. if test "x$MV_PROG" != "xNOTFOUND" ; then
  124. $MV_PROG -f index.chm $RESULTING_HTML_HELP_FILE
  125. fi
  126. fi
  127. fi
  128. fi
  129. # ----------------------------------------------------------------------------
  130. # Create the compressed tar archive.
  131. if test "x$CREATE_HTML_TARZ_ARCHIVE" == "xON" ; then
  132. if test "x$RESULTING_HTML_TARZ_ARCHIVE_FILE" != "x" ; then
  133. cd $OUTPUT_DIRECTORY
  134. if test "x$TAR_PROG" != "xNOTFOUND" ; then
  135. if test "x$RM_PROG" != "xNOTFOUND" ; then
  136. $RM_PROG -f html.tar
  137. fi
  138. $TAR_PROG -cf html.tar html
  139. if test "x$GZIP_PROG" != "xNOTFOUND" ; then
  140. if test "x$RM_PROG" != "xNOTFOUND" ; then
  141. $RM_PROG -f html.tar.gz
  142. fi
  143. $GZIP_PROG html.tar
  144. $MV_PROG -f html.tar.gz $RESULTING_HTML_TARZ_ARCHIVE_FILE
  145. fi
  146. fi
  147. fi
  148. fi
  149. # ----------------------------------------------------------------------------
  150. # Clean-up.
  151. if test "x$RM_PROG" != "xNOTFOUND" ; then
  152. if test "x$DOWNLOAD_VTK_TAGFILE" == "xON" ; then
  153. if test "x$VTK_TAGFILE" != "x" ; then
  154. $RM_PROG -f $VTK_TAGFILE_DEST_DIR/$VTK_TAGFILE
  155. fi
  156. fi
  157. if test "x$COMPILE_HTML_HELP" == "xON" ; then
  158. if test "x$RESULTING_HTML_HELP_FILE" != "x" ; then
  159. if test "x$ALLOW_ERASE_OUTPUT_DIRECTORY" == "xON" ; then
  160. $RM_PROG -fr $OUTPUT_DIRECTORY
  161. fi
  162. fi
  163. fi
  164. fi