From 182c7b23d482a680ac140a681128b74c7db058ac Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 28 Oct 2011 19:08:24 -0400 Subject: SpliceX now compiles to true binary --- contrib/splicex/configure | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 contrib/splicex/configure (limited to 'contrib/splicex/configure') diff --git a/contrib/splicex/configure b/contrib/splicex/configure new file mode 100755 index 0000000..7e11811 --- /dev/null +++ b/contrib/splicex/configure @@ -0,0 +1,50 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo 'usage: ./configure ' + 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' -- cgit v1.2.3 From 3a840e229d53c4be9b7d24609785dade54e2319f Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 28 Oct 2011 20:33:48 -0400 Subject: SpliceX updates --- contrib/splicex/configure | 10 +++++++--- contrib/splicex/src/make.in | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'contrib/splicex/configure') diff --git a/contrib/splicex/configure b/contrib/splicex/configure index 7e11811..4568b5b 100755 --- a/contrib/splicex/configure +++ b/contrib/splicex/configure @@ -41,10 +41,14 @@ else exit 1 fi -echo -ne "configuring splicex for $1 @ $PYPATH..." +echo +echo -ne "configuring splicex: " +echo +echo -e " python version == $1" +echo -e " interpreter path == $PYPATH" +echo -e " compiler flags == gcc -I/usr/include/$1" 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' +echo -e 'splicex configured' diff --git a/contrib/splicex/src/make.in b/contrib/splicex/src/make.in index 455be22..1ed50d2 100644 --- a/contrib/splicex/src/make.in +++ b/contrib/splicex/src/make.in @@ -56,7 +56,7 @@ uninstall: rm -f /usr/bin/splicex-deshadow clean: - rm DEBIAN/splicex DEBIAN/*.deb build/* -rf + rm Makefile DEBIAN/splicex DEBIAN/*.deb build/* -rf preinstall: rm -rf /etc/splicex -- cgit v1.2.3 From cf2d2906701dda5f62c1fa87436788867ab0b003 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 28 Oct 2011 20:42:24 -0400 Subject: SpliceX update --- contrib/splicex/configure | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'contrib/splicex/configure') diff --git a/contrib/splicex/configure b/contrib/splicex/configure index 4568b5b..2795772 100755 --- a/contrib/splicex/configure +++ b/contrib/splicex/configure @@ -4,7 +4,8 @@ if [ -z "$1" ]; then exit 1 fi -echo -ne 'checking for python...' +echo -e 'checking dependencies: ' +echo -ne " checking for python as <$1>..." if which `which "$1"` >/dev/null; then PYPATH=`which "$1"` echo -ne ' OK' @@ -14,7 +15,7 @@ else exit 1 fi -echo -ne 'checking for man...' +echo -ne ' checking for man...' if which man >/dev/null; then echo -ne ' OK' echo @@ -23,7 +24,7 @@ else exit 1 fi -echo -ne 'checking for cython...' +echo -ne ' checking for cython...' if which cython >/dev/null; then echo -ne ' OK' echo @@ -32,7 +33,7 @@ else exit 1 fi -echo -ne 'checking for gcc...' +echo -ne ' checking for gcc...' if which gcc >/dev/null; then echo -ne ' OK' echo -- cgit v1.2.3