-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.ssl.sh
44 lines (31 loc) · 881 Bytes
/
run.ssl.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
#!/bin/sh
###---------------------------------------------------------------------------------
OUT_DIR=./out
CA_DIR=./ca
FE_DIR=./fe
CA_OUT_DIR=./fe.ca
RUN_ALL_FILE=00.run.all.sh
###---------------------------------------------------------------------------------
CURR_DIR=""
###---------------------------------------------------------------------------------
if [ -f "$CA_DIR/$RUN_ALL_FILE" ];
then
CURR_DIR=$(pwd);
echo "$CURR_DIR";
cd "$CA_DIR";
"./$RUN_ALL_FILE";
cd "$CURR_DIR";
fi;
###---------------------------------------------------------------------------------
if [ -f "$FE_DIR/$RUN_ALL_FILE" ];
then
CURR_DIR=$(pwd);
echo "$CURR_DIR";
cd "$FE_DIR";
"./$RUN_ALL_FILE";
cd "$CURR_DIR";
fi;
CURR_DIR=$(pwd);
echo "$CURR_DIR";
###---------------------------------------------------------------------------------
exit;