Quote $builddir and @srcdir@ to protect from the shell.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-05-10 10:30:31 +00:00
commit 9128626a71

View file

@ -1,7 +1,7 @@
#!/bin/sh
builddir=`dirname $0`
srcdir=`cd $builddir && cd @srcdir@ && pwd`
srcdir=`cd "$builddir" && cd '@srcdir@' && pwd`
SWIG_LIB=$srcdir/Lib
#SWIG_LIB=`cygpath -w $srcdir/Lib` # For native Windows version of SWIG
export SWIG_LIB
exec $builddir/swig $*
exec "$builddir/swig" $*