[go: up one dir, main page]

Menu

[r107]: / clustal.sh  Maximize  Restore  History

Download this file

27 lines (26 with data), 482 Bytes

 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
#!/bin/bash
echo "0" >/tmp/clustalInstall.err
C1=`which gnome-terminal`
C2=`which xterm`
C3=`which rxvtl`
C4=`which kterm`
MTERM=''
if [ C1 ]; then
MTERM=$C1" -x "
elif (( C2 )); then
MTERM=$C2" -e "
elif (( C3 )); then
MTERM=$C3" -e "
else
MTERM=$C4" -e "
fi
cd $1
echo 'Launch install script V2'
COMM=$MTERM''$1'/clustalInstall.sh '$1
echo $COMM
gksudo "$COMM"
err=`cat /tmp/clustalInstall.err`
if [ "$err" -ne "0" ]; then
echo "Failed $err"
exit $err
fi