source: other-projects/trunk/mac-binaries/intel/ghostscript/bin/ps2ascii@ 17625

Last change on this file since 17625 was 17625, checked in by max, 15 years ago

Adding GhostScript 8.63 for Intel Mac and changing the location of ImageMagick 6.4.4 for Intel Mac that can process JPEG2000 files by default.

File size: 786 bytes
Line 
1#!/bin/sh
2# $Id: ps2ascii 6300 2005-12-28 19:56:24Z giles $
3# Extract ASCII text from a PostScript file. Usage:
4# ps2ascii [infile.ps [outfile.txt]]
5# If outfile is omitted, output goes to stdout.
6# If both infile and outfile are omitted, ps2ascii acts as a filter,
7# reading from stdin and writing on stdout.
8
9# This definition is changed on install to match the
10# executable name set in the makefile
11GS_EXECUTABLE=gs
12
13trap "rm -f _temp_.err _temp_.out" 0 1 2 15
14
15OPTIONS="-q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE"
16if ( test $# -eq 0 ) then
17 $GS_EXECUTABLE $OPTIONS -c save -f ps2ascii.ps - -c quit
18elif ( test $# -eq 1 ) then
19 $GS_EXECUTABLE $OPTIONS -c save -f ps2ascii.ps "$1" -c quit
20else
21 $GS_EXECUTABLE $OPTIONS -c save -f ps2ascii.ps "$1" -c quit >"$2"
22fi
Note: See TracBrowser for help on using the repository browser.