summaryrefslogtreecommitdiff
path: root/fltk-config.in
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2008-08-26 21:07:32 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2008-08-26 21:07:32 +0000
commit18b431e02ca37c625617f4038fffdef414b1defe (patch)
treece77e3d3c55bc8831c96c5b0c02fd2e2f86c45b0 /fltk-config.in
parente9b9ec812ddab4d0d4870ad1f123ea6237fc6d0d (diff)
Make sure script double-quotes $0...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
-rwxr-xr-xfltk-config.in4
1 files 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"