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.cmd70
1 files changed, 70 insertions, 0 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
new file mode 100644
index 00000000000..f6f164b74a1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd
@@ -0,0 +1,70 @@
+@echo off
+
+rem nomake script for EPS figures
+rem Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
+
+if "%CMDEXTVERSION%"=="" (
+ echo Error: This script requires command interpreter from Windows 2000 or above.
+ goto :eof
+)
+
+set epstool=epstool
+set epstopdf=epstopdf
+
+set etflags=--quiet --copy --bbox
+
+set figclfiles=*.pdf
+set suffix=~
+
+rem end of configuration
+
+if "%1"=="" (
+:default
+ call :help
+goto :eof
+)
+
+:start
+if "%1"=="" goto :eof
+
+if "%1"=="help" (
+:help
+ echo Targets:
+ echo clean - clean generated PDF files
+ echo epstopdf - convert all figures to PDF
+ echo fixbb - fix BoundingBox
+ echo help - ^(default^) show this message
+goto :eof
+)
+
+if "%1"=="clean" (
+:clean
+ del /s %figclfiles% 2> nul
+goto :eof
+)
+
+if "%1"=="epstopdf" (
+:epstopdf
+ for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n
+goto :end
+:conv
+ %epstopdf% "%1"
+ echo epstopdf: %~nx1...done
+goto :eof
+)
+
+if "%1"=="fixbb" (
+:fixbb
+ for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n
+goto :end
+:fix
+ %epstool% %etflags% %1 %1.%suffix%
+ move %1.%suffix% %1 > nul
+ echo fixbb: %~nx1...done
+goto :eof
+)
+
+if "%1" neq "" echo Don't know how to make %1
+:end
+shift & goto :start
+