From 972b3cf327e4ef50a536af99bc0960fe03ba8e55 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Mon, 5 Apr 2010 17:22:10 +0000 Subject: 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 --- gs/lib/bdftops | 2 +- gs/lib/dumphint | 4 ++-- gs/lib/eps2eps | 2 +- gs/lib/font2c | 2 +- gs/lib/gsbj | 2 +- gs/lib/gsdj | 2 +- gs/lib/gsdj500 | 2 +- gs/lib/gslj | 2 +- gs/lib/gslp | 2 +- gs/lib/gsnd | 2 +- gs/lib/pdf2dsc | 2 +- gs/lib/pdf2ps | 2 +- gs/lib/pdfopt | 2 +- gs/lib/pf2afm | 2 +- gs/lib/pfbtopfa | 2 +- gs/lib/pphs | 2 +- gs/lib/printafm | 2 +- gs/lib/ps2epsi | 2 +- gs/lib/ps2pdf | 2 +- gs/lib/ps2pdf12 | 2 +- gs/lib/ps2pdf13 | 2 +- gs/lib/ps2pdf14 | 2 +- gs/lib/ps2pdfwr | 2 +- gs/lib/ps2ps | 2 +- gs/lib/wftopfa | 2 +- 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 -- cgit v1.2.3