0025619: CAST analysis: Avoid classes with a non-empty destructor and not implementin...
[occt.git] / gendoc.bat
index b117413..c54601a 100644 (file)
@@ -4,20 +4,20 @@ rem Helper script to run generation of OCCT documentation on Windows.
 rem Running it requires that Tcl, Doxygen, and MikTex (for PDF generation)
 rem should be in the PATH
 
 rem Running it requires that Tcl, Doxygen, and MikTex (for PDF generation)
 rem should be in the PATH
 
+SET "OLD_PATH=%PATH%"
+
 if exist "%~dp0env.bat" (
   call "%~dp0env.bat"
 )
 
 if exist "%~dp0env.bat" (
   call "%~dp0env.bat"
 )
 
-if not ["%1"] == ["-h"] (
-  tclsh86.exe %~dp0dox/start.tcl  %*
+set "TCL_EXEC=tclsh.exe"
+
+for %%X in (%TCL_EXEC%) do (set TCL_FOUND=%%~$PATH:X)
+
+if defined TCL_FOUND (
+  %TCL_EXEC% %~dp0adm/start.tcl  %*
 ) else (
 ) else (
-  echo.
-  echo  gen.bat options:
-  echo  -html                : To generate HTML files ^(cannot be used with -pdf^)
-  echo  -pdf                 : To generate PDF files ^(cannot be used with -html^)
-  echo  -m^=^<modules_list^> : Specifies list of articles to generate. If it is not specified, all files, mentioned in FILES.txt are processed
-  echo  "-l=<document_name>  : Specifies the article caption for a single document"
-  echo  -h                   : Prints help message
-  echo  -v                   : Specifies the Verbose mode ^(info on all script actions is shown^)
-  echo.
+  echo "Error. %TCL_EXEC% is not found. Please update PATH variable"
 )
 )
+
+SET "PATH=%OLD_PATH%"