+ echo /usr/local/bin/fixps + sed s#.*/##g + program=fixps + debug= + file= + gs=gs + : + output=- + run_gs=0 + task=fixps + tmpdir=/tmp/fixps.2240 + verbose=echo + version=fixps 1.6 (GNU a2ps 4.13) Written by Akim Demaille. Copyright (c) 1998-2000 Akim Demaille, Miguel Santana This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + usage=Usage: fixps [OPTIONS] FILE Try to fix common PostScript problems that break postprocessing. Options: -h, --help display this help and exit -v, --version display version information and exit -q, --quiet don't print informational messages -o, --output=FILE save result in FILE. If FILE is `-', send to stdout -f, --force force full rewrite by ghostscript -n, --no-fix don't fix the FILE, but still honor `-o' -c, --check, --dry-run don't perform any action Fixes: - Remove junk before and after PostScript content - Use only Unix end of lines (\n) - Remove empty lines - Fix Apple prologue (fixmacps) - Fix FrameMaker prologue (fixfmps) - Fix CorelDraw prologue (fixnt) - Fix Windows NT 3.5/4.0 prologue (fixnt) - Fix Windows 95 prologue - Ensure there is a `%%BeginSetup/%%EndSetup' section - Removes Canvas' extraneaous `%%EndDocument:' comments - Split too long lines If the FILE seems really in a bad state, ghostscript may be used to perform a full rewrite. The output might then be significantly bigger, but much safer. Report bugs to + help=Try `fixps --help' for more information. + option_without_arguments=vhsqDfn + arg_sep=2240--2240 + set dummy -qn prueba.ps -o /dev/null 2240--2240 + shift + test x-qn != x2240--2240 + echo x-qn + sed -e s/x-\(.\).*/-\1/ + opt=-q + echo x-qn + sed -e s/x-.\(.*\)/-\1/ + rest=-n + shift + set dummy -q -n prueba.ps -o /dev/null 2240--2240 + shift + verbose=: + shift + test x-n != x2240--2240 + task=cat + shift + test xprueba.ps != x2240--2240 + set dummy prueba.ps -o /dev/null 2240--2240 prueba.ps + shift + shift + test x-o != x2240--2240 + shift + output=/dev/null + shift + test x2240--2240 != x2240--2240 + shift + file=prueba.ps + test -n + trap /bin/rm -rf /tmp/fixps.2240 0 1 2 3 13 15 + mkdir /tmp/fixps.2240 + fixps_sed=/tmp/fixps.2240/fixps.sed + test prueba.ps = - + sed 1q prueba.ps + grep ^%! + : + grep ^%! + sed 1q prueba.ps + : + : + command=tr '\015' '\012' <"prueba.ps" | sed -f /tmp/fixps.2240/fixps.sed + sed 20q prueba.ps + grep %% + sed 20q prueba.ps + grep $ + eval tr '\015' '\012' <"prueba.ps" | sed -f /tmp/fixps.2240/fixps.sed + sed -ne 1p;/^%%/p;/FMDEFINEFONT/p;/FMBEGINPAGE/p + tr \015 \012 + sed -f /tmp/fixps.2240/fixps.sed + comments=%!PS-Adobe-2.0 %%Creator: AbiWord %%Title: Documento 1 %%Orientation: Portrait %%Pages 1 %%DocumentPaperSizes: A4 %%DocumentSuppliedResources: font NimbusSanL-Regu CharterBT-Roman URWBookmanL-Ligh CenturySchL-Roma NimbusMonL-Regu Dingbats URWGothicL-Book NimbusRomNo9L-Regu NimbusSanL-ReguCond URWPalladioL-Roma StandardSymL %%EndComments %%BeginProlog %%EndProlog %%BeginSetup %%CreationDate: Wed Dec 22 1999 %%CreationDate: Fri Nov 2 19:00:13 1990 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Tue Oct 19 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Wed Dec 22 1999 %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup %%PageTrailer %%Trailer %%EOF + echo %!PS-Adobe-2.0 %%Creator: AbiWord %%Title: Documento 1 %%Orientation: Portrait %%Pages 1 %%DocumentPaperSizes: A4 %%DocumentSuppliedResources: font NimbusSanL-Regu CharterBT-Roman URWBookmanL-Ligh CenturySchL-Roma NimbusMonL-Regu Dingbats URWGothicL-Book NimbusRomNo9L-Regu NimbusSanL-ReguCond URWPalladioL-Roma StandardSymL %%EndComments %%BeginProlog %%EndProlog %%BeginSetup %%CreationDate: Wed Dec 22 1999 %%CreationDate: Fri Nov 2 19:00:13 1990 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Tue Oct 19 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Wed Dec 22 1999 %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup %%PageTrailer %%Trailer %%EOF + grep EPSF + patterns=^%%Pages: ^%%Page: + echo %!PS-Adobe-2.0 %%Creator: AbiWord %%Title: Documento 1 %%Orientation: Portrait %%Pages 1 %%DocumentPaperSizes: A4 %%DocumentSuppliedResources: font NimbusSanL-Regu CharterBT-Roman URWBookmanL-Ligh CenturySchL-Roma NimbusMonL-Regu Dingbats URWGothicL-Book NimbusRomNo9L-Regu NimbusSanL-ReguCond URWPalladioL-Roma StandardSymL %%EndComments %%BeginProlog %%EndProlog %%BeginSetup %%CreationDate: Wed Dec 22 1999 %%CreationDate: Fri Nov 2 19:00:13 1990 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Tue Oct 19 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Wed Dec 22 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Thu Oct 21 1999 %%CreationDate: Wed Dec 22 1999 %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup %%PageTrailer %%Trailer %%EOF + grep ^%%Pages: + : fixps: DSC broken. gs will be asked a full rewrite of the file. + run_gs=1 + break + test 1 = 1 + test xgs = x + test 1 = 0 + test 1 = 1 + task=gs + test gs != check + test /dev/null != - + exec + : fixps: making a full rewrite of the file (gs). + gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop -f prueba.ps + exit 0 + /bin/rm -rf /tmp/fixps.2240