blob: 7c70f94ee0eae11405a6ff08851c136a215fb16e (
plain)
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
|
#!/bin/sh
try_if_new () {
branch="$1"
to_install="$2"
commits=$(git-rev-list "ko-${branch}..${branch}")
to_build=no
case "$commits" in
'')
echo "* Up-to-date at ko-$branch"
to_build=no
;;
*)
to_build=yes
;;
esac
case "$to_install" in
?*)
to_build=yes
;;
esac
case "$to_build" in
yes)
Meta/Make clean >/dev/null 2>&1 &&
git checkout "$branch" &&
echo "* Testing $branch" &&
Meta/Make clean test >./":${branch}.log" 2>&1 &&
case "$to_install" in
?*)
Meta/Make install >>./":${branch}.log" 2>&1 ;;
esac
esac
}
git fetch ko &&
try_if_new maint &&
try_if_new pu &&
try_if_new master install &&
Meta/Make clean >/dev/null 2>&1
|