comparison contrib/splice3/setup-deb @ 659:4714e2a4cc09 draft

contrib/splice3 changes made
author d3v11 <d3v11@d3v11.ano>
date Sat, 08 Oct 2011 15:38:32 -0500
parents 15bbd88257a6
children
comparison
equal deleted inserted replaced
658:bd1f56c22102 659:4714e2a4cc09
1 #!/bin/bash 1 #!/bin/bash
2 echo 'checking for python2.7'
3 if which python2.7 >/dev/null; then
4 :
5 else
6 echo 'python2.7 not found. Quiting... :-('
7 exit 1
8 fi
9 2
10 echo 'checking for man' 3 echo 'checking for man'
11 if which man >/dev/null; then 4 if which man >/dev/null; then
12 : 5 :
13 else 6 else
21 else 14 else
22 echo 'dpkg not found. Quiting... :-(' 15 echo 'dpkg not found. Quiting... :-('
23 exit 1 16 exit 1
24 fi 17 fi
25 18
19 echo 'checking for python2.7'
20 CheckPython=`dpkg --get-selections python2.7`
21 if [[ $CheckPython == *deinstall* ]]; then
22 echo 'python2.7 not found. Quiting... :-('
23 exit 1
24 elif [[ $CheckPython == '' ]]; then
25 echo 'python2.7 not found. Quiting... :-('
26 exit 1
27 else
28 :
29 fi
30
26 echo 'configuring path to python2.7' 31 echo 'configuring path to python2.7'
27 PYPATH=`which python2.7` 32 PYPATH=`which python2.7`
28 sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp 33 sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp
29 sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3-deshadow.py >LINUX/splice3-deshadow.cp 34 sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3-deshadow.py >LINUX/splice3-deshadow.cp