]> git.pld-linux.org Git - packages/ghostscript.git/blob - ghostscript-missquotes.patch
- updated config and missquote patches
[packages/ghostscript.git] / ghostscript-missquotes.patch
1 diff -Nur gs7.00.orig/lib/dvipdf gs7.00/lib/dvipdf
2 --- gs7.00.orig/lib/dvipdf      Thu Mar  9 09:40:39 2000
3 +++ gs7.00/lib/dvipdf   Sun Apr 15 23:31:36 2001
4 @@ -22,18 +22,18 @@
5         exit 1
6  fi
7  
8 -infile=$1;
9 +infile="$1";
10  
11  if [ $# -eq 1 ]
12  then
13         case "${infile}" in
14 -         *.dvi)        base=`basename ${infile} .dvi` ;;
15 -         *)            base=`basename ${infile}` ;;
16 +         *.dvi)        base=`basename "${infile}" .dvi` ;;
17 +         *)            base=`basename "${infile}"` ;;
18         esac
19 -       outfile=${base}.pdf
20 +       outfile="${base}.pdf"
21  else
22 -       outfile=$2
23 +       outfile="$2"
24  fi
25  
26  # Doing an initial 'save' helps keep fonts from being flushed between pages.
27 -exec dvips -q -f $infile | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$outfile $OPTIONS -c save pop -
28 +exec dvips -q -f "$infile" | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c save pop -
29 diff -Nur gs7.00.orig/lib/eps2eps gs7.00/lib/eps2eps
30 --- gs7.00.orig/lib/eps2eps     Fri May 19 08:38:25 2000
31 +++ gs7.00/lib/eps2eps  Sun Apr 15 23:32:13 2001
32 @@ -17,4 +17,4 @@
33         exit 1
34  fi
35  
36 -exec gs -q -sDEVICE=epswrite -sOutputFile=$2 -dNOPAUSE -dBATCH -dSAFER $OPTIONS $1
37 +exec gs -q -sDEVICE=epswrite -sOutputFile="$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"
38 diff -Nur gs7.00.orig/lib/pdf2dsc gs7.00/lib/pdf2dsc
39 --- gs7.00.orig/lib/pdf2dsc     Fri Dec 29 06:03:49 2000
40 +++ gs7.00/lib/pdf2dsc  Sun Apr 15 23:32:43 2001
41 @@ -20,7 +20,7 @@
42  
43  pdffile=$1
44  dscfile=$2
45 -: ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
46 +: ${dscfile:=`echo "$pdffile" | sed 's,\.[^/.]*,,'`.dsc}
47  
48  exec gs -q -dNODISPLAY -dSAFER -dDELAYSAFER\
49      -sPDFname="$pdffile" -sDSCname="$dscfile" pdf2dsc.ps -c quit
50 diff -Nur gs7.00.orig/lib/pdf2ps gs7.00/lib/pdf2ps
51 --- gs7.00.orig/lib/pdf2ps      Fri May 19 08:38:25 2000
52 +++ gs7.00/lib/pdf2ps   Sun Apr 15 23:33:20 2001
53 @@ -14,10 +14,10 @@
54  
55  if [ $# -eq 2 ] 
56  then
57 -    outfile=$2
58 +    outfile="$2"
59  elif [ $# -eq 1 ]
60  then
61 -    outfile=`basename $1 \.pdf`.ps
62 +    outfile=`basename "$1" \.pdf`.ps
63  else
64      echo "Usage: `basename $0` [-dASCII85EncodePages=false] [-dLanguageLevel=1|2|3] input.pdf [output.ps]" 1>&2
65      exit 1
66 @@ -26,4 +26,4 @@
67  # Doing an initial 'save' helps keep fonts from being flushed between pages.
68  # We have to include the options twice because -I only takes effect if it
69  # appears before other options.
70 -exec gs $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile=$outfile $OPTIONS -c save pop -f $1
71 +exec gs $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile="$outfile" $OPTIONS -c save pop -f "$1"
72 diff -Nur gs7.00.orig/lib/pfbtopfa gs7.00/lib/pfbtopfa
73 --- gs7.00.orig/lib/pfbtopfa    Wed Apr 12 19:41:41 2000
74 +++ gs7.00/lib/pfbtopfa Sun Apr 15 23:33:52 2001
75 @@ -4,13 +4,13 @@
76  
77  if [ $# -eq 2 ] 
78  then
79 -    outfile=$2
80 +    outfile="$2"
81  elif [ $# -eq 1 ]
82  then
83 -    outfile=`basename $1 \.pfb`.pfa
84 +    outfile=`basename "$1" \.pfb`.pfa
85  else
86      echo "Usage: `basename $0` input.pfb [output.pfa]" 1>&2
87      exit 1
88  fi
89  
90 -exec gs -q -dNODISPLAY -- pfbtopfa.ps $1 $outfile
91 +exec gs -q -dNODISPLAY -- pfbtopfa.ps "$1" "$outfile"
92 diff -Nur gs7.00.orig/lib/ps2epsi gs7.00/lib/ps2epsi
93 --- gs7.00.orig/lib/ps2epsi     Wed Apr  4 23:05:00 2001
94 +++ gs7.00/lib/ps2epsi  Sun Apr 15 23:36:15 2001
95 @@ -1,7 +1,7 @@
96  #!/bin/sh
97  # $Id$
98  
99 -tmpfile=/tmp/ps2epsi$$
100 +tmpfile=`mktemp /tmp/$0.XXXXXX` || exit 1
101  
102  export outfile
103  
104 @@ -10,23 +10,23 @@
105         exit 1
106  fi
107  
108 -infile=$1;
109 +infile="$1";
110  
111  if [ $# -eq 1 ]
112  then
113         case "${infile}" in
114 -         *.ps)         base=`basename ${infile} .ps` ;;
115 -         *.cps)        base=`basename ${infile} .cps` ;;
116 -         *.eps)        base=`basename ${infile} .eps` ;;
117 -         *.epsf)       base=`basename ${infile} .epsf` ;;
118 -         *)            base=`basename ${infile}` ;;
119 +         *.ps)         base=`basename "${infile}" .ps` ;;
120 +         *.cps)        base=`basename "${infile}" .cps` ;;
121 +         *.eps)        base=`basename "${infile}" .eps` ;;
122 +         *.epsf)       base=`basename "${infile}" .epsf` ;;
123 +         *)            base=`basename "${infile}"` ;;
124         esac
125 -       outfile=${base}.epsi
126 +       outfile="${base}.epsi"
127  else
128 -       outfile=$2
129 +       outfile="$2"
130  fi
131  
132 -ls -l ${infile} |
133 +ls -l "${infile}" |
134  awk 'F==1      {
135                 cd="%%CreationDate: " $6 " " $7 " " $8;
136                 t="%%Title: " $9;
137 @@ -49,9 +49,9 @@
138                 print "end";
139                 exit(0);
140                 }
141 -       ' U="$USERNAME$LOGNAME"  F=1 - F=2 ${infile} >$tmpfile
142 +       ' U="$USERNAME$LOGNAME"  F=1 - F=2 "${infile}" >$tmpfile
143  
144 -gs -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit -sOutputFile=/dev/null $tmpfile ps2epsi.ps $tmpfile <${infile} 1>&2
145 +gs -q -dNOPAUSE -dSAFER -dDELAYSAFER -r72 -sDEVICE=bit -sOutputFile=/dev/null $tmpfile ps2epsi.ps $tmpfile <"${infile}" 1>&2
146  rm -f $tmpfile
147  
148  (
149 @@ -61,7 +61,7 @@
150  %%Page 1 1
151  BEGINEPS
152  
153 -cat ${infile} |
154 +cat "${infile}" |
155  sed -e '/^%%BeginPreview:/,/^%%EndPreview[^!-~]*$/d' -e '/^%!PS-Adobe/d'\
156         -e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
157  
158 @@ -71,6 +71,6 @@
159  %%EOF
160  ENDEPS
161  
162 -) >> ${outfile}
163 +) >> "${outfile}"
164  
165  exit 0
166 diff -Nur gs7.00.orig/lib/ps2pdfwr gs7.00/lib/ps2pdfwr
167 --- gs7.00.orig/lib/ps2pdfwr    Fri May 19 08:38:25 2000
168 +++ gs7.00/lib/ps2pdfwr Sun Apr 15 23:37:27 2001
169 @@ -17,20 +17,20 @@
170         exit 1
171  fi
172  
173 -infile=$1;
174 +infile="$1";
175  
176  if [ $# -eq 1 ]
177  then
178         case "${infile}" in
179           -)            outfile=- ;;
180 -         *.eps)        base=`basename ${infile} .eps`; outfile=${base}.pdf ;;
181 -         *.ps)         base=`basename ${infile} .ps`; outfile=${base}.pdf ;;
182 -         *)            base=`basename ${infile}`; outfile=${base}.pdf ;;
183 +         *.eps)        base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;;
184 +         *.ps)         base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;;
185 +         *)            base=`basename "${infile}"`; outfile="${base}.pdf" ;;
186         esac
187  else
188 -       outfile=$2
189 +       outfile="$2"
190  fi
191  
192  # We have to include the options twice because -I only takes effect if it
193  # appears before other options.
194 -exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$outfile $OPTIONS -c .setpdfwrite -f $infile
195 +exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -f "$infile"
196 diff -Nur gs7.00.orig/lib/ps2ps gs7.00/lib/ps2ps
197 --- gs7.00.orig/lib/ps2ps       Fri May 19 08:38:25 2000
198 +++ gs7.00/lib/ps2ps    Sun Apr 15 23:37:48 2001
199 @@ -17,4 +17,4 @@
200         exit 1
201  fi
202  
203 -exec gs -q -sDEVICE=pswrite -sOutputFile=$2 -dNOPAUSE -dBATCH $OPTIONS $1
204 +exec gs -q -sDEVICE=pswrite -sOutputFile="$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
This page took 0.690537 seconds and 4 git commands to generate.