-
Notifications
You must be signed in to change notification settings - Fork 7
/
allclean
executable file
·94 lines (92 loc) · 2.83 KB
/
allclean
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
export CLOONIX_TREE_ROOT=`pwd`
if [ ! -e ${CLOONIX_TREE_ROOT}/cloonix/cloonix_config ]; then
echo NOT FOUND:
echo ${CLOONIX_TREE_ROOT}/cloonix/cloonix_config
exit 1
fi
#----------------------------------------------------------
COMMON=${CLOONIX_TREE_ROOT}/cloonix/common
CLIENT=${CLOONIX_TREE_ROOT}/cloonix/client
SERVER=${CLOONIX_TREE_ROOT}/cloonix/server
rm -rf ${CLOONIX_TREE_ROOT}/build_tools/tmpbuild_client
rm -rf ${CLOONIX_TREE_ROOT}/build_tools/tmpbuild_server
rm -rf ${CLOONIX_TREE_ROOT}/build_tools/common
rm -f ${CLOONIX_TREE_ROOT}/build_tools/common.tar.gz
rm -rf ${CLOONIX_TREE_ROOT}/build_tools/server
rm -f ${CLOONIX_TREE_ROOT}/build_tools/server.tar.gz
#----------------------------------------------------------
rm -rf ${CLOONIX_TREE_ROOT}/build_tools/cloonix-bundle-*
#----------------------------------------------------------
for i in lib_rpc_clownix \
lib_rpc_doors \
lib_rpc_layout \
lib_utils; do
cd ${COMMON}/${i}
./allclean
done
#----------------------------------------------------------
for i in proxy_sig \
proxy_traf_tcp \
proxy_traf_unix; do
cd ${COMMON}/tester_lib/${i}
make clean
done
#----------------------------------------------------------
for i in lib_client \
ctrl \
xwycli \
cairo_canvas/crcanvas_gtk \
cairo_canvas/src/bank \
cairo_canvas/src/interface \
cairo_canvas/src/subsets \
cairo_canvas/src/bdplot \
cairo_canvas ; do
cd ${CLIENT}/${i}
make clean
done
#----------------------------------------------------------
for i in hide_dirs \
openssh \
rxvt \
spice \
spice_lib_client \
agent_dropbear ; do
cd ${CLIENT}/${i}
./allclean
done
#----------------------------------------------------------
for i in doorways \
proxy_crun \
suid_power \
uml_cloonix_switch \
create_insider_agents_iso/cloonix_agent ; do
cd ${SERVER}/${i}
make clean
done
rm -f ${SERVER}/dtach/cloonix-dtach
rm -f ${SERVER}/script_pty/cloonix-scriptpty
rm -f ${SERVER}/proxy_crun/cloonix-proxy-crun-access
#----------------------------------------------------------
for i in ovs \
proxy_crun \
nginx \
websockify-js \
ovs_drv \
ovs_snf \
ovs_nat \
ovs_c2c \
ovs_a2b \
qemu \
xwy \
wm2 \
crun \
tmux \
spice_lib_server ; do
cd ${SERVER}/${i}
./allclean
done
rm -f ${SERVER}/insider_agents/insider_agent_i386.iso
rm -f ${SERVER}/insider_agents/insider_agent_x86_64.iso
rm -rf ${SERVER}/insider_agents/cdrom
#----------------------------------------------------------