-
Notifications
You must be signed in to change notification settings - Fork 10
/
umit.sh
executable file
·61 lines (38 loc) · 1020 Bytes
/
umit.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
#!/bin/sh
if [ -z $1 ]
then
echo "NO argument is Given : e.g. deps , umit , run "
elif [ $1 = "deps" ]
then
############ Make Deps ##################
cd deps/clann/
make
cd ../../
cd deps/libkeybinder/
make
cd ../../
##############################################
cd deps
####### Copy The clann in umit/ ############
find ./clann -type d -name '*' -exec mkdir -p ../umit/{} \;
find ./clann -type f -name '*' -exec cp {} ../umit/{} \;
####### Copy The libkeybinder in umit/ ############
find ./libkeybinder -type d -name '*' -exec mkdir -p ../umit/{} \;
find ./libkeybinder -type f -name '*' -exec cp {} ../umit/{} \;
cd ..
svn checkout http://pypcap.googlecode.com/svn/trunk/ pypcap-read-only
cd pypcap-read-only
make
sudo make install
cd..
##############################################################
elif [ $1 = "umit" ]
then
sudo python bin/umit
elif [ $1 = "run" ]
then
./umit.sh deps
./umit.sh umit
else
echo "Enter correct arg : deps, umit , run"
fi