Mercurial > hg > anonet-resdb
view contrib/splicex/configure @ 697:a554ba2c1e81 draft
SpliceX now compiles to true binary
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Fri, 28 Oct 2011 19:08:24 -0400 |
parents | |
children | e930c37c85dc |
line wrap: on
line source
#!/bin/bash if [ -z "$1" ]; then echo 'usage: ./configure <python[version]>' exit 1 fi echo -ne 'checking for python...' if which `which "$1"` >/dev/null; then PYPATH=`which "$1"` echo -ne ' OK' echo else echo -ne ' FAILED' exit 1 fi echo -ne 'checking for man...' if which man >/dev/null; then echo -ne ' OK' echo else echo -ne ' FAILED' exit 1 fi echo -ne 'checking for cython...' if which cython >/dev/null; then echo -ne ' OK' echo else echo -ne ' FAILED' exit 1 fi echo -ne 'checking for gcc...' if which gcc >/dev/null; then echo -ne ' OK' echo else echo -ne ' FAILED' exit 1 fi echo -ne "configuring splicex for $1 @ $PYPATH..." sed -e s^PYTHON^"$1"^g src/make.in >Makefile sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >build/splicex sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >build/splicex-deshadow echo -ne ' OK' echo echo -e 'configure complete'