if { $DOCTYPE_COMBO_FLAG != 1 } {
set DOC_TYPE "REFMAN"
set DOCTYPE_COMBO_FLAG 1
- if { [file exists [pwd]/src/VAS/Products.tcl] } {
+ if { [info exists env(PRODROOT)] && [file exists $::env(PRODROOT)/src/VAS/Products.tcl] } {
set GENERATE_PRODUCTS_REFMAN "YES"
}
} else {
puts ""
}
- if { $GENERATE_PRODUCTS_REFMAN == "YES" } {
- if { [ lsearch $args_names "m" ] == -1 } {
- puts "\nError: Cannot generate Reference Manual for the whole set of OCC Products."
- puts "Aborting..."
- return -1
- }
- }
} elseif {$arg_n == "v"} {
set VERB_MODE "YES"
} elseif {$arg_n == "ug"} {
puts ""
# Clean logfiles
- set OUTDIR [OCCDoc_GetRootDir]/doc/
- set DOXYLOG $OUTDIR/doxygen_warnings_and_errors.log
- set PDFLOG $OUTDIR/pdflatex_warnings_and_errors.log
+ set DOXYLOG [OCCDoc_GetRootDir]/doc/doxygen_warnings_and_errors.log
+ set PDFLOG [OCCDoc_GetRootDir]/doc/pdflatex_warnings_and_errors.log
file delete -force $PDFLOG
file delete -force $DOXYLOG
set PRODPATH ""
if { [string compare -nocase $generateProductsRefman "YES"] == 0 } {
- set PRODPATH [pwd]
+ set PRODPATH "$::env(PRODROOT)"
}
set ROOTDIR [OCCDoc_GetRootDir $PRODPATH]
set HTMLDIR $OUTDIR/overview/html
set LATEXDIR $OUTDIR/overview/latex
set DOXYFILE $OUTDIR/OCCT.cfg
-
+
# Create or cleanup the output folders
if { [string compare -nocase $generateProductsRefman "YES"] != 0 } {
if { ![file exists $OUTDIR] } {
source "[OCCDoc_GetSourceDir $theProductsDir]/VAS/Products.tcl"
# load a command from this file
set modules [VAS:Products]
+ set modules [lsearch -not -all -inline $modules "VAS"]
}
return $modules
proc OCCDoc_GetHeadersList { theDesiredContent thePackageName {theProductsDir ""} } {
# Get list of header files with path
- set files_list [split [glob -nocomplain -type f -directory "[OCCDoc_GetIncDir $theProductsDir]" "${thePackageName}.hxx" "${thePackageName}_*.hxx"]]
+ set files_list [split [glob -nocomplain -type f -directory "[OCCDoc_GetSourceDir $theProductsDir]/$thePackageName" "${thePackageName}.hxx" "${thePackageName}_*.hxx"]]
# Get content according to desired type ('p' for path and 'f' for filenames only)
if { $theDesiredContent == "p" } {