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:
692 bytes
|
Line | |
---|
1 | /* $Id: ps2ps.cmd 6300 2005-12-28 19:56:24Z giles $ */
|
---|
2 | /*
|
---|
3 | * This file is maintained by a user: if you have any questions about it,
|
---|
4 | * please contact Mark Hale ([email protected]).
|
---|
5 | */
|
---|
6 |
|
---|
7 | /* "Distill" PostScript. */
|
---|
8 |
|
---|
9 | parse arg params
|
---|
10 |
|
---|
11 | gs='@gsos2'
|
---|
12 |
|
---|
13 | if params='' then call usage
|
---|
14 |
|
---|
15 | options='-dNOPAUSE -dBATCH'
|
---|
16 |
|
---|
17 | /* extract options from command line */
|
---|
18 | i=1
|
---|
19 | param=word(params,i)
|
---|
20 | do while substr(param,1,1)='-'
|
---|
21 | options=options param
|
---|
22 | i=i+1
|
---|
23 | param=word(params,i)
|
---|
24 | end
|
---|
25 |
|
---|
26 | infile=param
|
---|
27 | if infile='' then call usage
|
---|
28 | outfile=word(params,i+1)
|
---|
29 | if outfile='' then call usage
|
---|
30 |
|
---|
31 | gs '-q -sDEVICE=pswrite -sOutputFile='outfile options infile
|
---|
32 | exit
|
---|
33 |
|
---|
34 | usage:
|
---|
35 | say 'Usage: ps2ps ...switches... input.ps output.ps'
|
---|
36 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.