Adding a test to check if swig is installed before running it
This commit is contained in:
parent
ea10ad8588
commit
f2ff0cd74c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue