view contrib/splicex/configure @ 685:39369594be19 draft

splicex manual fix
author resdb <resdb@d3v11-VM.(none)>
date Sun, 23 Oct 2011 02:59:08 -0500
parents a785c7cf4b6a
children f471a2bca6ff
line wrap: on
line source

#!/bin/bash
clear
echo "
     __________        _ _         __  __    ______
    / / / / ___| _ __ | (_) ___ ___\\ \\/ /   / / / /
   / / / /\___ \| '_ \| | |/ __/ _ \\\\  /   / / / /
  / / / /  ___) | |_) | | | (_|  __//  \\  / / / /
 /_/_/_/  |____/| .__/|_|_|\\___\\___/_/\\_\\/_/_/_/
                |_|

      .:Brute Force Utilities For GNU/Linux:.
"

if [[ $(id -u) != 0 ]]; then
 echo 'root privileges required!..Quiting...'
 exit 1
fi

sleep .7
echo 'CONFIGURE: '
sleep .7
echo -ne 'checking for python'
sleep .7
echo -ne '.'
sleep .7
echo -ne '.'
sleep .7
echo -ne '.'
if which python >/dev/null; then
 sleep .7
 echo -ne ' python found :-)'
 echo
 sleep .7
else
 sleep .7
 echo -ne ' python not found. Quiting... :-('
 echo
 exit 1
fi

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

PYPATH=`which python`
echo "configuring splicex for $PYPATH"
sleep .7
echo -ne '.'
sleep .7
echo -ne '.'
sleep .7
echo -ne '.'
sed -e s^PYTHON^"$PYPATH"^g LINUX/splicex.py >LINUX/splicex.cp
sed -e s^PYTHON^"$PYPATH"^g LINUX/splicex-deshadow.py >LINUX/splicex-deshadow.cp
echo "configured...continuing \`make install'"
sleep .7
echo
echo 'INSTALL: '
sleep .7