diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/nomake.cmd')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/nomake.cmd | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/nomake.cmd b/Master/texmf-dist/doc/latex/disser/nomake.cmd index 3ed3c9711f3..aa1d1770b9d 100644 --- a/Master/texmf-dist/doc/latex/disser/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/nomake.cmd @@ -1,38 +1,62 @@ @echo off set target=disser + if %texmf%.==. set texmf=d:\programs\miktex\local set destdir=%texmf%\tex\latex\%target% -set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak +set docdir=%texmf%\doc\latex\%target% +set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak *.bbl *.blg if %1.==. ( -:make +:default + goto :all +) + +:start +if %1.==. goto :eof + +if %1.==all. ( +:all latex %target%.ins - echo. - echo Now run '%~n0 install' - echo. + call :doc goto :eof ) -if %1.==. goto :eof +if %1.==class. ( +:class + latex %target%.ins +goto :eof +) if %1.==clean. ( +:clean del %clean% goto :eof +goto :end ) if %1.==install. ( +:install if not exist %target%.cls ( echo You must run 'nomake' first goto :eof ) if not exist %destdir% mkdir %destdir% - copy /y *.rtx %destdir% > nul - copy /y *.cls %destdir% > nul - goto :eof + if not exist %docdir% mkdir %docdir% + xcopy /y /f *.rtx %destdir% + xcopy /y /f *.cls %destdir% + xcopy /y /f *.dvi %docdir% +goto :end ) if %1.==doc. ( +:doc + chcp 1251 latex %target%.dtx latex -src-specials %target%.dtx +goto :end ) + +if %1. neq . (echo Don't know how to make %1 ) +:end +shift & goto :start |