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.cmd63
1 files changed, 34 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/nomake.cmd b/Master/texmf-dist/doc/latex/disser/nomake.cmd
index 061b185d3d0..a85368fd2a7 100644
--- a/Master/texmf-dist/doc/latex/disser/nomake.cmd
+++ b/Master/texmf-dist/doc/latex/disser/nomake.cmd
@@ -8,19 +8,22 @@ if "%CMDEXTVERSION%"=="" (
goto :eof
)
-if "%texmf%"=="" set texmf=%programfiles%\miktex-2.6
+if "%target%"=="" set target=disser
-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
+if "%texmf%"=="" set texmf=%programfiles%\miktex
+if "%destdir%"=="" set destdir=%texmf%\tex\latex\%target%
+if "%docdir%"=="" set docdir=%texmf%\doc\latex\%target%
+if "%clfiles%"=="" set clfiles=*.rtx *.cls *.log *.out *.aux *.dvi *.ind ^
+*.idx *.ilg *.glo *.toc *.ind *.bak *.bbl *.blg *.pdf *.sav *.ps
-set texflags=-src-specials -terminal=oem
+if "%latex%"=="" set latex=latex
+if "%pdflatex%"=="" set pdflatex=pdflatex
+set mi=makeindex
+
+if "%latexflags%"=="" set latexflags=-src-specials
+if "%pdflatexflags%"=="" set pdflatexflags=""
rem Default target
if "%1"=="" (
@@ -41,7 +44,7 @@ goto :eof
if "%1"=="class" (
:class
- %tex% %target%.ins
+ %latex% %target%.ins
goto :eof
)
@@ -60,25 +63,27 @@ goto :eof
if "%1"=="dvi" (
:dvi
- %tex% %texflags% %target%.dtx
- %tex% %texflags% %target%.dtx
- %tex% %texflags% %subclass%.dtx
- %tex% %texflags% %subclass%.dtx
+ %latex% %latexflags% %target%.dtx
+ %mi% -r %target%
+ %latex% %latexflags% %target%.dtx
+ %latex% %latexflags% %subclass%.dtx
+ %latex% %latexflags% %subclass%.dtx
goto :eof
)
if "%1"=="pdf" (
:pdf
- %pdftex% %texflags% %target%.dtx
- %pdftex% %texflags% %target%.dtx
- %pdftex% %texflags% %subclass%.dtx
- %pdftex% %texflags% %subclass%.dtx
+ %pdflatex% %pdflatexflags% %target%.dtx
+ %mi% -r %target%
+ %pdflatex% %pdflatexflags% %target%.dtx
+ %pdflatex% %pdflatexflags% %subclass%.dtx
+ %pdflatex% %pdflatexflags% %subclass%.dtx
goto :eof
)
if "%1"=="install" (
:install
- if not exist %target%.cls ( call :all )
+ if not exist %target%.cls call :all
if not exist "%destdir%" md "%destdir%"
if not exist "%docdir%" md "%docdir%"
xcopy /y /f *.rtx "%destdir%"
@@ -90,18 +95,18 @@ 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
+ echo List of 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 )
+if "%1" neq "" echo Don't know how to make %1
:end
shift & goto :start