-
Notifications
You must be signed in to change notification settings - Fork 1
/
tjark2016.sh
82 lines (62 loc) · 1.55 KB
/
tjark2016.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
#@Author: Xincheng Han
#
#Template Declaration
#Adding code before the final 'fi'
#echo "6.xxxxxx"
#elif [ $number -eq 6 ];then #Do not loss the blank!
##your command; #Do not forget ';' at the end!
#
usingTarget='Develop' #Modify it if the other target is used!
echo "******** FUNCTION LIST ***********"
echo "******** 1.MAKE ***********"
echo "******** 2.COPYFILES ***********"
echo "88888888 22.COPYFILES 88888888888"
echo "******** 3.LOGIN ***********"
echo "88888888 33.LOGIN 88888888888"
echo "******** 4.SIMROBOT ***********"
echo "******** 5.GameControl ***********"
echo "******** 6.TeamPosition***********"
echo "******** 7.Bush ***********"
read number
if [ $number -eq 1 ];then
cd Make/Linux
make CONFIG=$usingTarget
cd;
elif [ $number -eq 2 ];then
cd Make/Linux
echo "Input your IP:192.168.20."
read ip
./copyfiles $usingTarget 192.168.20.$ip -r
cd
elif [ $number -eq 22 ];then
cd Make/Linux
echo "Input your IP:10.0.20."
read ip
./copyfiles $usingTarget 10.0.20.$ip -r
cd
elif [ $number -eq 3 ];then
cd Make/Linux
echo "Input your IP:192.168.20."
read ip
./login 192.168.20.$ip
cd
elif [ $number -eq 33 ];then
cd Make/Linux
echo "Input your IP:10.0.20."
read ip
./login 10.0.20.$ip
cd
elif [ $number -eq 4 ];then
cd Build/Linux/SimRobot/Develop
./SimRobot;
elif [ $number -eq 5 ];then
cd GameController2016
java -jar GameController.jar
elif [ $number -eq 6 ];then
cd GameController2016
java -jar TeamCommunicationMonitor.jar
elif [ $number -eq 7 ];then
cd Build/Linux/bush/Develop
./bush;
fi