-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
40 lines (33 loc) · 739 Bytes
/
Copy pathsetup.sh
File metadata and controls
40 lines (33 loc) · 739 Bytes
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
#!/bin/sh
setup_log="../../output/setup.log"
if [ ! `which composer` ]; then
echo "composer command not found."
exit 1;
fi
if [ ! `which wrk` ]; then
echo "wrk command not found. Go to https://github.com/wg/wrk"
exit 1;
fi
if [ ! `which curl` ]; then
echo "curl command not found."
exit 1;
fi
if [ $# -eq 0 ]; then
# include framework list
. ./list.sh
targets="$list"
else
targets="${@%/}"
fi
for fw in $targets
do
if [ -d "frameworks/$fw" ]; then
echo "***** $fw *****"
cd "frameworks/$fw"
. "_benchmark/setup.sh"
echo "frameworks/$fw/_benchmark/setup.sh" >> "$setup_log"
cd ..
cd ..
fi
done
find . -name ".htaccess" -exec rm -rf {} \;