summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd')
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd91
1 files changed, 34 insertions, 57 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
index 03e6e0707b4..a79a74ab838 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
@@ -33,20 +33,30 @@ if "%1"=="" (
:default
call :help
goto :eof
-)
-
-:start
-if "%1"=="" goto :eof
-
-if "%1"=="clean" (
+) else if "%1"=="help" (
+:help
+ echo clean clean PDF, PNG and TIFF files
+ echo epstoeps optimize EPS files using Ghostscript
+ echo epstopdf convert EPS to PDF
+ echo fixbb fix BoundingBox of EPS files
+ echo help ^(default^) show description of targets
+ echo pdftopng256 convert PDF to PNG ^(256-color^)
+ echo pdftotiffg4 convert PDF to TIFF ^(b/w CCITT Group 4^)
+goto :eof
+) else if "%1"=="clean" (
:clean
- del /s %figclfiles% 2> nul
+ del /s %figclfiles%
goto :eof
-)
-
-if "%1"=="epstopdf" (
+) else if "%1"=="epstoeps" (
+:epstoeps
+ for %%f in (!e2efiles!) do (
+ %e2e% %e2eflags% "%%f" "%%f%suffix%"
+ move "%%f%suffix%" "%%f" > nul
+ echo epstoeps: %%f
+ )
+goto :eof
+) else if "%1"=="epstopdf" (
:epstopdf
- if "%2" neq "" set e2pfiles=%2 %3 %4 %5 %6 %7 %8 %9
for %%f in (!e2pfiles!) do (
if not exist "%%~nf.pdf" (
%epstopdf% "%%f"
@@ -54,10 +64,16 @@ if "%1"=="epstopdf" (
)
)
goto :eof
-)
-
-if "%1"=="pdftopng256" (
-:pdftopng
+) else if "%1"=="fixbb" (
+:fixbb
+ for %%f in (!fbbfiles!) do (
+ %epstool% %etflags% "%%f" "%%f%suffix%"
+ move "%%f%suffix%" "%%f" > nul
+ echo fixbb: %%f
+ )
+goto :eof
+) else if "%1"=="pdftopng256" (
+:pdftopng256
if "%2" neq "" set pdf2pngfiles=%2 %3 %4 %5 %6 %7 %8 %9
for %%f in (!pdf2pngfiles!) do (
if not exist "%%~nf.png" (
@@ -66,9 +82,7 @@ if "%1"=="pdftopng256" (
)
)
goto :eof
-)
-
-if "%1"=="pdftotiffg4" (
+) else if "%1"=="pdftotiffg4" (
:pdftotiffg4
if "%2" neq "" set pdf2tiffiles=%2 %3 %4 %5 %6 %7 %8 %9
for %%f in (!pdf2tiffiles!) do (
@@ -78,43 +92,6 @@ if "%1"=="pdftotiffg4" (
)
)
goto :eof
+) else (
+ echo Don't know how to make %1
)
-
-if "%1"=="fixbb" (
-:fixbb
- if "%2" neq "" set fbbfiles=%2 %3 %4 %5 %6 %7 %8 %9
- for %%f in (!fbbfiles!) do (
- %epstool% %etflags% "%%f" "%%f%suffix%"
- move "%%f%suffix%" "%%f" > nul
- echo fixbb: %%f
- )
-goto :eof
-)
-
-if "%1"=="epstoeps" (
-:epstoeps
- if "%2" neq "" set e2efiles=%2 %3 %4 %5 %6 %7 %8 %9
- for %%f in (!e2efiles!) do (
- %e2e% %e2eflags% "%%f" "%%f%suffix%"
- move "%%f%suffix%" "%%f" > nul
- echo epstoeps: %%f
- )
-goto :eof
-)
-
-if "%1"=="help" (
-:help
- echo Targets:
- echo clean clean PDF files
- echo epstoeps optimize EPS files using Ghostscript
- echo epstopdf convert EPS to PDF
- echo fixbb fix BoundingBox of EPS files
- echo pdftopng256 convert PDF to PNG (256-color)
- echo pdftotiffg4 convert PDF to TIFF (b/w CCITT Group 4)
- echo help ^(default^) show this message
-goto :eof
-)
-
-if "%1" neq "" echo Don't know how to make %1
-:end
-shift & goto :start