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:
parent
efa0db04c6
commit
9128626a71
1 changed files with 2 additions and 2 deletions
|
|
@ -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" $*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue