Last change
on this file since 17223 was 17223, checked in by max, 16 years ago |
Add Ghostscript binaries and libraries for windows.
|
File size:
501 bytes
|
Line | |
---|
1 | @echo off
|
---|
2 | @rem $Id: ps2ps.bat 6417 2005-12-29 01:11:43Z alexcher $
|
---|
3 | @rem "Distill" PostScript.
|
---|
4 |
|
---|
5 | if %1/==/ goto usage
|
---|
6 | if %2/==/ goto usage
|
---|
7 | call gssetgs.bat
|
---|
8 | echo -dNOPAUSE -dSAFER -dBATCH >_.at
|
---|
9 | :cp
|
---|
10 | if %3/==/ goto doit
|
---|
11 | echo %1 >>_.at
|
---|
12 | shift
|
---|
13 | goto cp
|
---|
14 |
|
---|
15 | :doit
|
---|
16 | rem Watcom C deletes = signs, so use # instead.
|
---|
17 | %GSC% -q -sDEVICE#pswrite -sOutputFile#%2 @_.at %1
|
---|
18 | if exist _.at erase _.at
|
---|
19 | goto end
|
---|
20 |
|
---|
21 | :usage
|
---|
22 | echo "Usage: ps2ps [options] input.ps output.ps"
|
---|
23 | echo " e.g. ps2ps -sPAPERSIZE=a4 input.ps output.ps
|
---|
24 |
|
---|
25 | :end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.