Skip to content

Commit 4cca6af

Browse files
committed
Add script to composer update
1 parent dccb71e commit 4cca6af

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
for fw in $targets
2727
do
2828
if [ -d "$fw" ]; then
29-
echo "$fw"
29+
echo "***** $fw *****"
3030
cd "$fw"
3131
. "_benchmark/setup.sh"
3232
cd ..

update.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
if [ ! `which composer` ]; then
4+
echo "composer command not found."
5+
exit 1;
6+
fi
7+
8+
if [ $# -eq 0 ]; then
9+
# include framework list
10+
. ./list.sh
11+
targets="$list"
12+
else
13+
targets="${@%/}"
14+
fi
15+
16+
for fw in $targets
17+
do
18+
if [ -d "$fw" ]; then
19+
echo "***** $fw *****"
20+
cd "$fw"
21+
composer update
22+
cd ..
23+
fi
24+
done

0 commit comments

Comments
 (0)