Another small update.
[Python-Scripts.git] / PySmile / pysmile-py
blobed96fa4b3f3d50c78fa818647a47f727bd141333
1 #!/bin/sh
3 if [ -z "${PYTHON}" ]; then
4 export PYTHON="$(/usr/bin/which python2)"
5 fi
6 if [ -z "${CC}" ]; then
7 export CC="$(/usr/bin/which gcc)"
8 fi
9 if [ -z "${2}" ]; then
10 ./pysmile-gen "$1" "Python" > "${1%.*}.py"
11 else
12 mkdir -v -p $(dirname ${2})
13 ./pysmile-gen "$1" "Python" > "${2}"