summaryrefslogtreecommitdiff
path: root/contrib/splice3/setup-deb
blob: bf8dd01a05adf683d579762d5f36237da9baec4f (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
#!/bin/bash

echo 'checking for man'
if which man >/dev/null; then
 :
else
 echo 'man not found. Quiting... :-('
 exit 1
fi

echo 'checking for dpkg'
if which dpkg >/dev/null; then
 :
else
 echo 'dpkg not found. Quiting... :-('
 exit 1
fi

echo 'checking for python2.7'
CheckPython=`dpkg --get-selections python2.7`
if [[ $CheckPython == *deinstall* ]]; then
 echo 'python2.7 not found. Quiting... :-('
 exit 1
elif [[ $CheckPython == '' ]]; then
 echo 'python2.7 not found. Quiting... :-('
 exit 1
else
 :
fi

echo 'configuring path to python2.7'
PYPATH=`which python2.7`
sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp
sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3-deshadow.py >LINUX/splice3-deshadow.cp