20 lines
546 B
Bash
Executable File
20 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Recursive swift code wrapper generator for gobject-introspection (.gir) files.
|
|
# This calls the non-recursive gir-to-swift.sh to do the heavy lifting.
|
|
#
|
|
. ./config.sh
|
|
./package.sh fetch
|
|
if ! pushd .build/gir2swift >/dev/null 2>&1 ; then
|
|
mkdir -p .build
|
|
pushd .build >/dev/null
|
|
git clone https://github.com/rhx/gir2swift.git
|
|
cd gir2swift && ./build.sh
|
|
fi
|
|
export PATH=`pwd`/.build/debug:${PATH}
|
|
popd >/dev/null
|
|
for gen in Packages/*/gir-to-swift.sh ; do
|
|
( cd `dirname $gen` && ./`basename $gen` )
|
|
done
|
|
. ./gir-to-swift.sh "$@"
|