swig/preinst-swig.in
Olly Betts 430fe58a24 Properly quote parameters in preinst-swig wrapper.
$* 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.
2015-01-07 18:14:44 +13:00

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" "$@"