blob: deafbdc1ef1bd8bd56e9627a36c8a02aec2b3fb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
@echo off
:: DOS batch for converting PS files into ``canonical'' EPS files
:: using Ghostscript
if "%2" == "" goto USAGE
if "%1" == "%2" goto BAD
tm START
echo.
if "%4" == "" goto NOOFF
gs386 @c:/ps_conv/gc.par -dDOS -dXOFF=%3 -dYOFF=%4 ps_conv.ps %1 showpage.ps
goto CONT
:NOOFF
gs386 @c:/ps_conv/gc.par -dDOS ps_conv.ps %1 showpage.ps
:CONT
if exist !ps_exp1.ps goto MERGE
goto END
:MERGE
copy !ps_exp2.ps + c:\ps_conv\gc_head.ps + !ps_exp1.ps + c:\ps_conv\gc_tail.ps %2 /b
:ENDING
del !ps_exp1.ps
del !ps_exp2.ps
:END
echo.
tm STOP
goto DONE
:BAD
echo INPUT AND OUTPUT FILES MUST HAVE DIFFERENT NAMES!
:USAGE
echo USAGE: gc input-file-name output-file-name [X-offset Y-offset]
:DONE
|