15 test -z "$(git diff --cached --name-status)" ||
{
16 echo >&2 "Repository unclean."
19 Meta
/Make clean
>/dev
/null
2>&1
21 test -f /bin
/dash || with_dash
=
23 : ${branches='next master maint pu jch'}
25 for branch
in $branches
27 echo >&3 "** $branch **"
29 revision
=$
(git show-ref
-s --verify "refs/heads/$branch") ||
{
34 if installed
=$
($HOME/git-
$branch/bin
/git version
) &&
35 if version
=$
(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
38 elif version
=v$
(expr "$installed" : \
39 'git version \(.*\)\.rc[0-9]*$')
41 version
="$version"-$
(expr "$installed" : \
42 'git version .*\.\(rc[0-9]*\)$')
44 version
=v$
(expr "$installed" : 'git version \(.*\)')
46 version
=$
(git rev-parse
--verify "$version^0" 2>/dev
/null
) &&
47 test "z$version" = "z$revision"
49 echo "* up-to-date version \"$installed\" is already installed from $branch"
50 test -n "$force" ||
continue
54 git checkout
$branch &&
55 Meta
/Make
$M -- $J clean
&&
59 master | maint | next | jch
)
60 Meta
/Make
$M -- $J SHELL_PATH
=/bin
/dash
test &&
61 Meta
/Make
$M -- $J clean
66 Meta
/Make
$M -- $J all
&&
67 Meta
/Make
$M -- $J test &&
69 master | maint | next
)
73 Meta
/Make
$M -- doc install-doc
78 Meta
/Make
$M -- install &&
79 Meta
/Make clean ||
exit $?
81 done >.
/:all.log
3>&2 2>&1