diff options
author | Karl Berry <karl@freefriends.org> | 2007-12-02 14:58:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-12-02 14:58:50 +0000 |
commit | a06badd5ddd56caafe23bc9b1c80a2cb4cd5eec7 (patch) | |
tree | d2f4be3792761c70377ac41c078ccd50b1c8be73 /Master/texmf-dist/doc/latex/disser/include/latex.fig.nmk.cmd | |
parent | c5ef0710987f248dea9df928126632d5820a6426 (diff) |
disser update (30nov07)
git-svn-id: svn://tug.org/texlive/trunk@5676 c570f23f-e606-0410-a88d-b1316a301751
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.cmd | 70 |
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 + |