summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHin-Tak Leung <hintak_leung@yahoo.co.uk>2010-04-05 17:22:10 +0000
committerHin-Tak Leung <hintak_leung@yahoo.co.uk>2010-04-05 17:22:10 +0000
commit972b3cf327e4ef50a536af99bc0960fe03ba8e55 (patch)
treebec74dcf1fb2519614e8dae4a603315fc8b88735
parent828a0258a48f5319401b38b1ff707fb4b3e1bed2 (diff)
adding escaped quotes around $0 in "dirname $0" ; bug 691219
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11016 a1074d23-0009-0410-80fe-cf8c14f379e6
-rwxr-xr-xgs/lib/bdftops2
-rwxr-xr-xgs/lib/dumphint4
-rwxr-xr-xgs/lib/eps2eps2
-rwxr-xr-xgs/lib/font2c2
-rwxr-xr-xgs/lib/gsbj2
-rwxr-xr-xgs/lib/gsdj2
-rwxr-xr-xgs/lib/gsdj5002
-rwxr-xr-xgs/lib/gslj2
-rwxr-xr-xgs/lib/gslp2
-rwxr-xr-xgs/lib/gsnd2
-rwxr-xr-xgs/lib/pdf2dsc2
-rwxr-xr-xgs/lib/pdf2ps2
-rwxr-xr-xgs/lib/pdfopt2
-rwxr-xr-xgs/lib/pf2afm2
-rwxr-xr-xgs/lib/pfbtopfa2
-rwxr-xr-xgs/lib/pphs2
-rwxr-xr-xgs/lib/printafm2
-rwxr-xr-xgs/lib/ps2epsi2
-rwxr-xr-xgs/lib/ps2pdf2
-rwxr-xr-xgs/lib/ps2pdf122
-rwxr-xr-xgs/lib/ps2pdf132
-rw-r--r--gs/lib/ps2pdf142
-rwxr-xr-xgs/lib/ps2pdfwr2
-rwxr-xr-xgs/lib/ps2ps2
-rwxr-xr-xgs/lib/wftopfa2
25 files changed, 26 insertions, 26 deletions
diff --git a/gs/lib/bdftops b/gs/lib/bdftops
index 47955de97..ffd80be9d 100755
--- a/gs/lib/bdftops
+++ b/gs/lib/bdftops
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/dumphint b/gs/lib/dumphint
index d9c98cd5f..0a6f5b26f 100755
--- a/gs/lib/dumphint
+++ b/gs/lib/dumphint
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
@@ -27,4 +27,4 @@ if [ $# -ne 1 ]; then
exit 1
fi
-exec "$GS_EXECUTABLE" -q -dNODISPLAY $OPTIONS -- "`dirname $0`/dumphint.ps" "$1"
+exec "$GS_EXECUTABLE" -q -dNODISPLAY $OPTIONS -- "`dirname \"$0\"`/dumphint.ps" "$1"
diff --git a/gs/lib/eps2eps b/gs/lib/eps2eps
index 2f4e83fa3..16b3dc073 100755
--- a/gs/lib/eps2eps
+++ b/gs/lib/eps2eps
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/font2c b/gs/lib/font2c
index ab722a354..72a9ba68a 100755
--- a/gs/lib/font2c
+++ b/gs/lib/font2c
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gsbj b/gs/lib/gsbj
index 1f6c74d43..42d08fc1f 100755
--- a/gs/lib/gsbj
+++ b/gs/lib/gsbj
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gsdj b/gs/lib/gsdj
index 2925cb302..970e6499f 100755
--- a/gs/lib/gsdj
+++ b/gs/lib/gsdj
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gsdj500 b/gs/lib/gsdj500
index d8d4fb1bb..6203ba41e 100755
--- a/gs/lib/gsdj500
+++ b/gs/lib/gsdj500
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gslj b/gs/lib/gslj
index 04403d0e2..9667a9b4a 100755
--- a/gs/lib/gslj
+++ b/gs/lib/gslj
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gslp b/gs/lib/gslp
index 495813166..34ab7bbbc 100755
--- a/gs/lib/gslp
+++ b/gs/lib/gslp
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/gsnd b/gs/lib/gsnd
index 6cab5a8ec..2ef24d31c 100755
--- a/gs/lib/gsnd
+++ b/gs/lib/gsnd
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pdf2dsc b/gs/lib/pdf2dsc
index 4a82bf227..d05a2a474 100755
--- a/gs/lib/pdf2dsc
+++ b/gs/lib/pdf2dsc
@@ -9,7 +9,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pdf2ps b/gs/lib/pdf2ps
index d90bb167f..af9acf7df 100755
--- a/gs/lib/pdf2ps
+++ b/gs/lib/pdf2ps
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pdfopt b/gs/lib/pdfopt
index ce4eea1d7..162d4e99b 100755
--- a/gs/lib/pdfopt
+++ b/gs/lib/pdfopt
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pf2afm b/gs/lib/pf2afm
index 0d3e864b0..4ebf49ab8 100755
--- a/gs/lib/pf2afm
+++ b/gs/lib/pf2afm
@@ -8,7 +8,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pfbtopfa b/gs/lib/pfbtopfa
index fa4bed18d..d4975e0a3 100755
--- a/gs/lib/pfbtopfa
+++ b/gs/lib/pfbtopfa
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/pphs b/gs/lib/pphs
index 0ecbec42b..90a3433d1 100755
--- a/gs/lib/pphs
+++ b/gs/lib/pphs
@@ -7,7 +7,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/printafm b/gs/lib/printafm
index f0a32f352..30b7c6399 100755
--- a/gs/lib/printafm
+++ b/gs/lib/printafm
@@ -7,7 +7,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/ps2epsi b/gs/lib/ps2epsi
index 2a255ee1e..120b2db9f 100755
--- a/gs/lib/ps2epsi
+++ b/gs/lib/ps2epsi
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/ps2pdf b/gs/lib/ps2pdf
index 3d8147cbb..575c08edf 100755
--- a/gs/lib/ps2pdf
+++ b/gs/lib/ps2pdf
@@ -6,7 +6,7 @@
# not to change in the future.
version=14
-ps2pdf="`dirname $0`/ps2pdf$version"
+ps2pdf="`dirname \"$0\"`/ps2pdf$version"
if test ! -x "$ps2pdf"; then
ps2pdf="ps2pdf$version"
fi
diff --git a/gs/lib/ps2pdf12 b/gs/lib/ps2pdf12
index 937036f5b..ea6d7d37b 100755
--- a/gs/lib/ps2pdf12
+++ b/gs/lib/ps2pdf12
@@ -1,7 +1,7 @@
#!/bin/sh
# $Id$
# Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible).
-ps2pdfwr="`dirname $0`/ps2pdfwr"
+ps2pdfwr="`dirname \"$0\"`/ps2pdfwr"
if test ! -x "$ps2pdfwr"; then
ps2pdfwr="ps2pdfwr"
fi
diff --git a/gs/lib/ps2pdf13 b/gs/lib/ps2pdf13
index 1b7ada23c..2af920f14 100755
--- a/gs/lib/ps2pdf13
+++ b/gs/lib/ps2pdf13
@@ -1,7 +1,7 @@
#!/bin/sh
# $Id$
# Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible).
-ps2pdfwr="`dirname $0`/ps2pdfwr"
+ps2pdfwr="`dirname \"$0\"`/ps2pdfwr"
if test ! -x "$ps2pdfwr"; then
ps2pdfwr="ps2pdfwr"
fi
diff --git a/gs/lib/ps2pdf14 b/gs/lib/ps2pdf14
index f1b777c1b..d3668b59f 100644
--- a/gs/lib/ps2pdf14
+++ b/gs/lib/ps2pdf14
@@ -1,7 +1,7 @@
#!/bin/sh
# $Id$
# Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible).
-ps2pdfwr="`dirname $0`/ps2pdfwr"
+ps2pdfwr="`dirname \"$0\"`/ps2pdfwr"
if test ! -x "$ps2pdfwr"; then
ps2pdfwr="ps2pdfwr"
fi
diff --git a/gs/lib/ps2pdfwr b/gs/lib/ps2pdfwr
index 10cb9b682..7994147c5 100755
--- a/gs/lib/ps2pdfwr
+++ b/gs/lib/ps2pdfwr
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/ps2ps b/gs/lib/ps2ps
index 423f01f90..1d93c015c 100755
--- a/gs/lib/ps2ps
+++ b/gs/lib/ps2ps
@@ -5,7 +5,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi
diff --git a/gs/lib/wftopfa b/gs/lib/wftopfa
index 3f430b60e..4de1c4633 100755
--- a/gs/lib/wftopfa
+++ b/gs/lib/wftopfa
@@ -4,7 +4,7 @@
# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
-gs="`dirname $0`/$GS_EXECUTABLE"
+gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
gs="$GS_EXECUTABLE"
fi