Skip to content

Commit

Permalink
Merge pull request Kitt-AI#428 from Kitt-AI/devel
Browse files Browse the repository at this point in the history
Added script to install swig
  • Loading branch information
chenguoguo authored Apr 19, 2018
2 parents 60c8deb + a799089 commit 5272396
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/install_swig.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# SWIG is a tool to compile c++ code into Python.

echo "Installing SWIG"

if [ ! -e swig-3.0.10.tar.gz ]; then
cp exteral_tools/swig-3.0.10.tar.gz ./ || \
wget -T 10 -t 3 \
http://prdownloads.sourceforge.net/swig/swig-3.0.10.tar.gz || exit 1;
fi

tar -xovzf swig-3.0.10.tar.gz || exit 1
ln -s swig-3.0.10 swig

cd swig

# We first have to install PCRE.
if [ ! -e pcre-8.37.tar.gz ]; then
cp ../exteral_tools/pcre-8.37.tar.gz ./ || \
wget -T 10 -t 3 \
https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.gz || exit 1;
fi
Tools/pcre-build.sh

./configure --prefix=`pwd` --with-pic
make
make install

cd ..

0 comments on commit 5272396

Please sign in to comment.