9 -noinstall) install=noinstall
;;
16 test -z "$(git diff --cached --name-status)" ||
{
17 echo >&2 "Repository unclean."
20 Meta
/Make clean
>/dev
/null
2>&1
22 test -f /bin
/dash || with_dash
=
24 : ${branches='next master maint pu jch'}
26 for branch
in $branches
28 echo >&3 "** $branch **"
30 revision
=$
(git show-ref
-s --verify "refs/heads/$branch") ||
{
35 private
=$
(git rev-parse
-q --verify private-
$branch 2>/dev
/null
)
36 case $?
in 0|
1) ;; *) exit $?
;; esac
38 if installed
=$
($HOME/git-
$branch/bin
/git version
) &&
39 if version
=$
(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
42 elif version
=v$
(expr "$installed" : \
43 'git version \(.*\)\.rc[0-9]*$')
45 version
="$version"-$
(expr "$installed" : \
46 'git version .*\.\(rc[0-9]*\)$')
48 version
=v$
(expr "$installed" : 'git version \(.*\)')
50 version
=$
(git rev-parse
--verify "$version^0" 2>/dev
/null
) &&
51 test "z$version" = "z$revision"
53 echo "* up-to-date version \"$installed\" is already installed from $branch"
54 test -n "$force" ||
continue
58 git checkout
$branch &&
64 git merge
--squash --no-commit "$private" ||
{
65 echo >&2 "Cannot apply private edition changes"
71 Meta
/Make
$M -- $J clean
&&
75 master | maint | next | jch
)
76 Meta
/Make
$M -- $J SHELL_PATH
=/bin
/dash
test &&
77 Meta
/Make
$M -- $J clean
83 Meta
/Make
$M -- $J all
&&
84 Meta
/Make
$M -- $J test &&
86 master | maint | next
)
90 Meta
/Make
$M -- doc install-doc
96 test z
$install = znoinstall ||
97 Meta
/Make
$M -- install
99 Meta
/Make clean ||
exit $?
103 done >.
/:all.log
3>&2 2>&1