From 18b431e02ca37c625617f4038fffdef414b1defe Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 26 Aug 2008 21:07:32 +0000 Subject: Make sure script double-quotes $0... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fltk-config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fltk-config.in b/fltk-config.in index d1563258b..adbd375af 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -35,7 +35,7 @@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" APIVERSION="$MAJOR_VERSION.$MINOR_VERSION" ### BEGIN fltk-config -selfdir=`dirname $0` +selfdir=`dirname "$0"` prefix=@prefix@ exec_prefix=@exec_prefix@ @@ -282,7 +282,7 @@ if test -n "$post"; then # Make a shell script that runs the bundled executable echo "#!/bin/sh" >"$post" - echo 'dir="`dirname $0`"' >>"$post" + echo 'dir="`dirname '"'"'$0'"'"'`"' >>"$post" echo 'exec "$dir/'"$post.app/Contents/MacOS/$post"'" "$@"' >>"$post" chmod +x "$post" -- cgit v1.2.3