-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.sh
48 lines (39 loc) · 771 Bytes
/
setup.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
#!/bin/sh
export TERM=xterm-color
if [ ! `which composer` ]; then
echo "composer not found."
exit 1;
fi
if [ ! `which php` ]; then
echo "php not found."
exit 1;
fi
if [ ! `which wrk` ]; then
echo "wrk not found."
exit 1;
fi
if [ ! `which curl` ]; then
echo "curl not found."
exit 1;
fi
. ./config
. ./base/option_target.sh
# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
for fw in $param_targets
do
echo -e "\n\n"
echo "/------- $fw: setting up -------/"
if [ -d "$fw" ]; then
cd "$fw"
. "_benchmark/setup.sh"
cd ..
else
# check for dir
echo -e "${RED}Dir $fw/ doesn't exist!${NC}"
FAIL=1
fi
done
find . -name ".htaccess" -exec rm -rf {} \;