@echo off rem nomake script for LaTeX packages rem Author: Stanislav Kruchinin if "%CMDEXTVERSION%"=="" ( echo Error: This script requires command interpreter from Windows 2000 or above. goto :eof ) if "%texmf%"=="" set texmf=%programfiles%\miktex-2.6 set target=disser set subclass=gost732 set destdir=%texmf%\tex\latex\%target% set docdir=%texmf%\doc\latex\%target% set clfiles=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind ^ *.ilg *.bak *.bbl *.blg *.pdf set tex=latex set pdftex=pdflatex set texflags=-src-specials -terminal=oem rem Default target if "%1"=="" ( :default call :all goto :eof ) :start if "%1"=="" goto :eof if "%1"=="all" ( :all call :class call :doc goto :eof ) if "%1"=="class" ( :class %tex% %target%.ins goto :eof ) if "%1"=="clean" ( :clean del %clfiles% goto :eof ) if "%1"=="doc" ( :doc call :dvi call :pdf goto :eof ) if "%1"=="dvi" ( :dvi %tex% %texflags% %target%.dtx %tex% %texflags% %target%.dtx %tex% %texflags% %subclass%.dtx %tex% %texflags% %subclass%.dtx goto :eof ) if "%1"=="pdf" ( :pdf %pdftex% %texflags% %target%.dtx %pdftex% %texflags% %target%.dtx %pdftex% %texflags% %subclass%.dtx %pdftex% %texflags% %subclass%.dtx goto :eof ) if "%1"=="install" ( :install if not exist %target%.cls ( call :all ) if not exist "%destdir%" md "%destdir%" if not exist "%docdir%" md "%docdir%" xcopy /y /f *.rtx "%destdir%" xcopy /y /f *.cls "%destdir%" xcopy /y /f *.dvi "%docdir%" xcopy /y /f *.pdf "%docdir%" goto :eof ) if "%1"=="help" ( :help echo Targets: echo all - ^(default^) build classes and documentation echo class - build classes echo clean - remove ouptut files echo doc - build documentation echo dvi - build DVI version of documentation echo help - show help echo install - install package and documentation echo pdf - build PDF version of documentation goto :eof ) if "%1" neq "" (echo Don't know how to make %1 ) :end shift & goto :start