X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=gendoc.bat;h=0bce76c5f1dfa188bad99bfd9992386b21fdb870;hp=8f6ffa5625bbab89f12fe5a83071b17854f426ba;hb=a347ef35b42408298f5a41c9292a7a53e84c411d;hpb=6a0964c23e489dd3ba69065ad2fdfa0e98ca3c04 diff --git a/gendoc.bat b/gendoc.bat index 8f6ffa5625..0bce76c5f1 100644 --- a/gendoc.bat +++ b/gendoc.bat @@ -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^=^ : Specifies list of articles to generate. If it is not specified, all files, mentioned in FILES.txt are processed - echo "-l= : 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%"