summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/nomake.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/nomake.cmd')
-rw-r--r--Master/texmf-dist/doc/latex/disser/nomake.cmd42
1 files changed, 26 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/nomake.cmd b/Master/texmf-dist/doc/latex/disser/nomake.cmd
index b11cee26211..ab194a768f2 100644
--- a/Master/texmf-dist/doc/latex/disser/nomake.cmd
+++ b/Master/texmf-dist/doc/latex/disser/nomake.cmd
@@ -8,21 +8,27 @@ if "%CMDEXTVERSION%"=="" (
goto :eof
)
-if "%target%"=="" set target=disser
+setlocal enabledelayedexpansion
+
+set target=disser
set subclass=gost732
set bst=disser-bst
+set manual=manual
-if "%texmf%"=="" set texmf=%programfiles%\miktex
+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 srcfiles=*.dtx *.ins %manual%.tex Makefile nomake.cmd
-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 "!texmf!"=="" set texmf=%programfiles%\miktex
-if "%clsfiles%"=="" set clsfiles=*.cls *.rtx
-if "%docfiles%"=="" set docfiles=%target%.dvi %subclass%.pdf %target%.pdf %subclass%.pdf
-if "%bstdocfiles%"=="" set bstdocfiles=%bst%.dvi %bst%.pdf
-if "%bstfiles%"=="" set bstfiles=%target%.bst
+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
@@ -65,7 +71,6 @@ goto :eof
if "%1"=="doc" (
:doc
- call :dvi
call :pdf
goto :eof
)
@@ -79,6 +84,8 @@ if "%1"=="dvi" (
%latex% %latexflags% %subclass%.dtx
%latex% %latexflags% %bst%.dtx
%latex% %latexflags% %bst%.dtx
+ %latex% %latexflags% %manual%.tex
+ %latex% %latexflags% %manual%.tex
goto :eof
)
@@ -91,6 +98,8 @@ if "%1"=="pdf" (
%pdflatex% %pdflatexflags% %subclass%.dtx
%pdflatex% %pdflatexflags% %bst%.dtx
%pdflatex% %pdflatexflags% %bst%.dtx
+ %pdflatex% %pdflatexflags% %manual%.tex
+ %pdflatex% %pdflatexflags% %manual%.tex
goto :eof
)
@@ -100,19 +109,20 @@ if "%1"=="install" (
if not exist "%clsdir%" md "%clsdir%"
if not exist "%docdir%" md "%docdir%"
if not exist "%bstdir%" md "%bstdir%"
- if not exist "%bstdocdir%" md "%bstdocdir%"
+ 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 (%bstfiles%) do xcopy /y /f %%f "%bstdir%"
- for %%f in (%bstdocfiles%) do xcopy /y /f %%f "%bstdocdir%"
+ 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%"
goto :eof
)
if "%1"=="help" (
:help
- echo List of targets:
+ echo Targets:
echo all ^(default^) build classes and documentation
- echo class build classes
+ echo class build class
echo clean remove ouptut files
echo doc build documentation
echo dvi build DVI version of documentation