diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-24 16:35:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-24 16:35:13 +0000 |
commit | d73a503687f31a927aea191ec9ed3cf1c950fd8f (patch) | |
tree | 7dc5b70b51a539ac785341bad4387d836bb371c2 /Master/texmf-dist/doc/latex/disser/nomake.cmd | |
parent | 3c2360d0385b88c9a20bd20ac33c71d9cec07294 (diff) |
disser update (23jun09)
git-svn-id: svn://tug.org/texlive/trunk@13941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/nomake.cmd')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/nomake.cmd | 111 |
1 files changed, 55 insertions, 56 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/nomake.cmd b/Master/texmf-dist/doc/latex/disser/nomake.cmd index ab194a768f2..b50ca825981 100644 --- a/Master/texmf-dist/doc/latex/disser/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/nomake.cmd @@ -16,10 +16,9 @@ set bst=disser-bst set manual=manual set clsfiles=*.cls *.rtx -set docfiles=%subclass%.pdf %target%.pdf %subclass%.pdf %manual%.pdf ^ -..\README ..\README.ru ..\ChangeLog -set bstfile=%target%.bst -set bstdocfile=%bst%.pdf +set bstfiles=%target%.bst %target%-s.bst +set docfiles=%target%.pdf %subclass%.pdf %bst%.pdf %manual%.pdf +set textfiles=..\README ..\README.ru ..\ChangeLog set srcfiles=*.dtx *.ins %manual%.tex Makefile nomake.cmd if "!texmf!"=="" set texmf=%programfiles%\miktex @@ -27,11 +26,11 @@ if "!texmf!"=="" set texmf=%programfiles%\miktex if "%clsdir%"=="" set clsdir=!texmf!\tex\latex\%target% if "%bstdir%"=="" set bstdir=!texmf!\bibtex\bst\%target% if "%docdir%"=="" set docdir=!texmf!\doc\latex\%target% -if "%bstdocdir%"=="" set bstdocdir=!texmf!\doc\bibtex\%target% if "%srcdir%"=="" set srcdir=!texmf!\source\latex\%target% -if "%clfiles%"=="" set clfiles=*.rtx *.cls *.log *.out *.aux *.dvi *.ind ^ -*.idx *.ilg *.glo *.toc *.ind *.bak *.bbl *.blg *.pdf *.sav *.ps *.bst +if "%clext%"=="" set clext=*.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo ^ +*.toc *.bak *.bbl *.blg *.sav +if "%clfiles%"=="" set clfiles=%clsfiles% %bstfiles% %docfiles% %clext% if "%latex%"=="" set latex=latex if "%pdflatex%"=="" set pdflatex=pdflatex @@ -39,46 +38,35 @@ if "%mi%"=="" set mi=makeindex if "%latexflags%"=="" set latexflags=-src-specials if "%pdflatexflags%"=="" set pdflatexflags="" +if "%miflags%"=="" set miflags="-r" rem Default target if "%1"=="" ( :default call :all goto :eof -) - -:start -if "%1"=="" goto :eof - -if "%1"=="all" ( +) else if "%1"=="all" ( :all - call :class + call :package call :doc goto :eof -) - -if "%1"=="class" ( -:class +) else if "%1"=="package" ( +:package %latex% %target%.ins goto :eof -) - -if "%1"=="clean" ( +) else if "%1"=="clean" ( :clean del %clfiles% goto :eof -) - -if "%1"=="doc" ( +) else if "%1"=="doc" ( :doc call :pdf goto :eof -) - -if "%1"=="dvi" ( +) else if "%1"=="dvi" ( :dvi %latex% %latexflags% %target%.dtx - %mi% -r %target% + %mi% %miflags% %target% + %latex% %latexflags% %target%.dtx %latex% %latexflags% %target%.dtx %latex% %latexflags% %subclass%.dtx %latex% %latexflags% %subclass%.dtx @@ -87,12 +75,11 @@ if "%1"=="dvi" ( %latex% %latexflags% %manual%.tex %latex% %latexflags% %manual%.tex goto :eof -) - -if "%1"=="pdf" ( +) else if "%1"=="pdf" ( :pdf %pdflatex% %pdflatexflags% %target%.dtx - %mi% -r %target% + %mi% %miflags% %target% + %pdflatex% %pdflatexflags% %target%.dtx %pdflatex% %pdflatexflags% %target%.dtx %pdflatex% %pdflatexflags% %subclass%.dtx %pdflatex% %pdflatexflags% %subclass%.dtx @@ -101,37 +88,49 @@ if "%1"=="pdf" ( %pdflatex% %pdflatexflags% %manual%.tex %pdflatex% %pdflatexflags% %manual%.tex goto :eof -) - -if "%1"=="install" ( +) else if "%1"=="install" ( :install if not exist %target%.cls call :all if not exist "%clsdir%" md "%clsdir%" if not exist "%docdir%" md "%docdir%" if not exist "%bstdir%" md "%bstdir%" if not exist "%srcdir%" md "%srcdir%" - for %%f in (%clsfiles%) do xcopy /y /f %%f "%clsdir%" - for %%f in (%docfiles%) do xcopy /y /f %%f "%docdir%" - for %%f in (%bstfile%) do xcopy /y /f %%f "%bstdir%" - for %%f in (%bstdocfile%) do xcopy /y /f %%f "%docdir%" - for %%f in (%srcfiles%) do xcopy /y /f %%f "%srcdir%" + for %%f in (%clsfiles%) do xcopy /y /f %%f "%clsdir%" + for %%f in (%docfiles%) do xcopy /y /f %%f "%docdir%" + for %%f in (%textfiles%) do xcopy /y /f %%f "%docdir%" + for %%f in (%bstfiles%) do xcopy /y /f %%f "%bstdir%" + for %%f in (%srcfiles%) do xcopy /y /f %%f "%srcdir%" goto :eof -) - -if "%1"=="help" ( +) else if "%1"=="reinstall" ( +:reinstall + call :uninstall + call :install +goto :eof +) else if "%1"=="uninstall" ( +:uninstall + for %%f in (%clsfiles%) do del "%clsdir%\%%~nxf" + for %%f in (%docfiles%) do del "%docdir%\%%~nxf" + for %%f in (%textfiles%) do del "%docdir%\%%~nxf" + for %%f in (%bstfiles%) do del "%bstdir%\%%~nxf" + for %%f in (%srcfiles%) do del "%srcdir%\%%~nxf" + rmdir "%clsdir%" + rmdir "%docdir%" + rmdir "%bstdir%" + rmdir "%srcdir%" +goto :eof +) else if "%1"=="help" ( :help - echo Targets: - echo all ^(default^) build classes and documentation - echo class build class - 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 + echo all ^(default^) build package and documentation + echo clean remove output files + echo doc build documentation + echo dvi build DVI version of documentation + echo help show description of targets + echo install install package and documentation + echo package build package and documentation + echo pdf build PDF version of documentation + echo reinstall reinstall package and documentation + echo uninstall remove package and documentation from TeX tree goto :eof +) else ( + echo Don't know how to make %1 ) - -if "%1" neq "" echo Don't know how to make %1 -:end -shift & goto :start |