1#!/usr/local/bin/bash 2 3if [ "$#" == 0 ] 4then 5 ./clean.sh && swig -python -py3 c3.i && python setup.py build_ext --inplace > py_build_msg.log 6else 7 if [ "$1" == "3" ] 8 then 9 echo "Building with Python 3.x" > py_build_msg.log 10 ./clean.sh && swig -python -py3 c3.i && python setup.py build_ext --inplace >> py_build_msg.log 11 elif [ "$1" == "2" ] 12 then 13 echo "Building with Python 2.x" > py_build_msg.log 14 ./clean.sh && swig -python c3.i && python setup.py build_ext --inplace >> py_build_msg.log 15 else 16 echo "Unknown Python Version $1" 17 fi 18fi 19