view contrib/splice3/setup-deb @ 671:1bc0c37ce2c1 draft

updated splice3 manual for character controls
author d3v11 <d3v11@d3v11.ano>
date Sat, 15 Oct 2011 14:07:54 -0500
parents 4714e2a4cc09
children
line wrap: on
line source

#!/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