$* is subject to word-splitting and pathname expansion, whereas "$@" expands to each parameter as a separate quoted word. Some ancient shells expand "$@" to "" if there are no parameters, but that isn't really a concern here as running swig without arguments isn't useful.
7 lines
216 B
Bash
Executable file
7 lines
216 B
Bash
Executable file
#!/bin/sh
|
|
builddir=`dirname $0`
|
|
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" "$@"
|