File tree Expand file tree Collapse file tree 2 files changed +76
-0
lines changed
Expand file tree Collapse file tree 2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ try_if_new () {
4+ branch=" $1 "
5+ to_install=" $2 "
6+ commits=$( git-rev-list " ko-${branch} ..${branch} " )
7+
8+ to_build=no
9+ case " $commits " in
10+ ' ' )
11+ echo " * Up-to-date at ko-$branch "
12+ to_build=no
13+ ;;
14+ * )
15+ to_build=yes
16+ ;;
17+ esac
18+
19+ case " $to_install " in
20+ ?* )
21+ to_build=yes
22+ ;;
23+ esac
24+
25+ case " $to_build " in
26+ yes)
27+ Meta/Make clean > /dev/null 2>&1 &&
28+ git checkout " $branch " &&
29+ echo " * Testing $branch " &&
30+ Meta/Make clean test > ./" :${branch} .log" 2>&1 &&
31+ case " $to_install " in
32+ ?* )
33+ Meta/Make install >> ./" :${branch} .log" 2>&1 ;;
34+ esac
35+ esac
36+ }
37+
38+ git fetch ko &&
39+
40+ try_if_new maint &&
41+ try_if_new pu &&
42+ try_if_new master install &&
43+ Meta/Make clean > /dev/null 2>&1
44+
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ m=$( git-rev-parse " master^0" )
4+ for branch
5+ do
6+ b=$( git-rev-parse " $branch ^0" )
7+ case " $( git-merge-base --all " $b " " $m " ) " in
8+ " $m " )
9+ echo >&2 " $branch : up to date"
10+ continue
11+ ;;
12+ esac
13+ git-show-branch " $branch " master
14+ while :
15+ do
16+ echo -n >&2 " Rebase $branch [Y/n]? "
17+ read ans
18+ case " $ans " in
19+ [Yy]* )
20+ git rebase master " $branch " || exit
21+ break
22+ ;;
23+ [Nn]* )
24+ echo >&2 " Not rebasing $branch "
25+ break
26+ ;;
27+ * )
28+ echo >&2 " Sorry, I could not hear you"
29+ ;;
30+ esac
31+ done
32+ done
You can’t perform that action at this time.
0 commit comments