Adding a test to check if swig is installed before running it

This commit is contained in:
Julien 2011-10-22 18:35:42 +02:00
parent ea10ad8588
commit f2ff0cd74c
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh
if [ "$1" = python ]
then
if ! which swig > /dev/null
then
echo "You should install swig !"
exit 1
fi
make python_module
if [ $? != 0 ]
then