blob: 7e11811597877bb1fce044bc61a9e00dcd31a253 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/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'
|