forked from mmperf/mmperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_submodules.sh
executable file
·39 lines (34 loc) · 1006 Bytes
/
update_submodules.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
#!/bin/bash -x
COMMIT_PUSH=false
while getopts “p” OPTION
do
case $OPTION in
p)
echo "Pushing changes up.."
COMMIT_PUSH=true
;;
?)
echo "Unsupported option.. -p for pushing changes up after update"
exit
;;
esac
done
echo "Updating repos.."
#repos with master branches
for master_branch in flatbuffers cpuinfo
do
echo Update master branch for ... $master_branch
cd external/$master_branch && git fetch --all && git checkout origin/master && cd -
done
#repos with master branches
for main_branch in benchmark iree iree-llvm-sandbox llvm-project tvm Halide
do
echo Update master branch for ... $main_branch
cd external/$main_branch && git fetch --all && git checkout origin/main && cd -
done
if [ "$COMMIT_PUSH" = true ]; then
echo "Checking out transformer-benchmarks..."
git add .
git commit -m "Roll external deps"
echo git push https://github.com/mmperf/mmperf
fi