-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear.all.sh
49 lines (35 loc) · 925 Bytes
/
clear.all.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
#!/bin/sh
###---------------------------------------------------------------------------------
OUT_DIR=./out
CA_DIR=./ca
FE_DIR=./fe
CA_OUT_DIR=./fe.ca
INIT_FILE=01.init.sh
###---------------------------------------------------------------------------------
CURR_DIR=""
if [ -d "$CA_OUT_DIR" ];
then
rm -f "$CA_OUT_DIR/*";
fi;
###---------------------------------------------------------------------------------
if [ -f "$CA_DIR/$INIT_FILE" ];
then
CURR_DIR=$(pwd);
echo "$CURR_DIR";
cd "$CA_DIR";
"./$INIT_FILE";
cd "$CURR_DIR";
fi;
###---------------------------------------------------------------------------------
if [ -f "$FE_DIR/$INIT_FILE" ];
then
CURR_DIR=$(pwd);
echo "$CURR_DIR";
cd "$FE_DIR";
"./$INIT_FILE";
cd "$CURR_DIR";
fi;
CURR_DIR=$(pwd);
echo "$CURR_DIR";
###---------------------------------------------------------------------------------
exit;