Fix WOK extraction when environment variable HAVE_VTK is not defined
[occt.git] / gendoc.bat
index 8f6ffa5..0bce76c 100644 (file)
@@ -4,20 +4,11 @@ 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
 
+SET "OLD_PATH=%PATH%"
+
 if exist "%~dp0env.bat" (
   call "%~dp0env.bat"
 )
 
-if not ["%1"] == ["-h"] (
-  tclsh.exe %~dp0dox/start.tcl  %*
-) 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.
-)
+tclsh.exe %~dp0adm/start.tcl  %*
+SET "PATH=%OLD_PATH%"