-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup
49 lines (41 loc) · 825 Bytes
/
setup
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
LINUX_FLAG=""
arch=$(uname)
if [ $arch != "Linux" ]
then
LINUX_FLAG=-B
fi
if which java;
then
echo -n ""
else
echo "setup unsuccessful. java not found in $PATH"
exit
fi
if which javac;
then
echo -n ""
else
echo "setup unsuccessful. javac not found in $PATH"
exit
fi
echo -n "#!" > jcuteonce
echo `which bash` >> jcuteonce
cat $LINUX_FLAG jcuteonce.in >> jcuteonce
chmod +x jcuteonce
echo -n "#!" > jcutec
echo `which bash` >> jcutec
cat $LINUX_FLAG jcutec.in >> jcutec
chmod +x jcutec
echo -n "#!" > jcute
echo `which bash` >> jcute
cat $LINUX_FLAG jcute.in >> jcute
chmod +x jcute
chmod +x jcutegui
chmod +x clean
chmod +x runtests
echo "Setup Complete"
echo "Try running ./runtests"
echo " or"
echo "run ./testall"
echo " or"
echo "run ./jcutegui for a Graphical Interface to jCUTE"