diff options
Diffstat (limited to 'support/pstools/ps_conv/gc.bat')
-rw-r--r-- | support/pstools/ps_conv/gc.bat | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/support/pstools/ps_conv/gc.bat b/support/pstools/ps_conv/gc.bat new file mode 100644 index 0000000000..deafbdc1ef --- /dev/null +++ b/support/pstools/ps_conv/gc.bat @@ -0,0 +1,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 |