1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# Script to configure, compile, and install PREDICT
#
whoiam=`whoami`
if [ $whoiam != "root" ]; then
echo "Sorry $whoiam. You need to be 'root' to install PREDICT. :-("
else
echo -n "One moment please... "
oldterm=$TERM
export TERM=linux
cc -Wall -O2 -s installer.c -lncurses -o installer
#./installer
if [ -a installer ]; then
./installer
else
echo "Compilation failed. Are you sure you have a C compiler (gcc) installed?"
fi
export TERM=$oldterm
fi
|