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
|
#!/bin/sh
|
||||||
if [ "$1" = python ]
|
if [ "$1" = python ]
|
||||||
then
|
then
|
||||||
|
if ! which swig > /dev/null
|
||||||
|
then
|
||||||
|
echo "You should install swig !"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
make python_module
|
make python_module
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user