Make sure script double-quotes $0...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
e9b9ec812d
commit
18b431e02c
@ -35,7 +35,7 @@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
|
|||||||
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
||||||
|
|
||||||
### BEGIN fltk-config
|
### BEGIN fltk-config
|
||||||
selfdir=`dirname $0`
|
selfdir=`dirname "$0"`
|
||||||
|
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
@ -282,7 +282,7 @@ if test -n "$post"; then
|
|||||||
|
|
||||||
# Make a shell script that runs the bundled executable
|
# Make a shell script that runs the bundled executable
|
||||||
echo "#!/bin/sh" >"$post"
|
echo "#!/bin/sh" >"$post"
|
||||||
echo 'dir="`dirname $0`"' >>"$post"
|
echo 'dir="`dirname '"'"'$0'"'"'`"' >>"$post"
|
||||||
echo 'exec "$dir/'"$post.app/Contents/MacOS/$post"'" "$@"' >>"$post"
|
echo 'exec "$dir/'"$post.app/Contents/MacOS/$post"'" "$@"' >>"$post"
|
||||||
chmod +x "$post"
|
chmod +x "$post"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user