|
|
@ -1,7 +1,12 @@ |
|
|
|
#!/bin/sh |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
|
|
: ${J=-j2} |
|
|
|
: ${J=-j2} |
|
|
|
while case "$1" in -pedantic) M=$1 ;; *) break ;; esac |
|
|
|
force= |
|
|
|
|
|
|
|
while case "$1" in |
|
|
|
|
|
|
|
-pedantic) M=$1 ;; |
|
|
|
|
|
|
|
-force) force=$1 ;; |
|
|
|
|
|
|
|
*) break ;; |
|
|
|
|
|
|
|
esac |
|
|
|
do |
|
|
|
do |
|
|
|
shift |
|
|
|
shift |
|
|
|
done |
|
|
|
done |
|
|
@ -17,18 +22,23 @@ Meta/Make clean >/dev/null 2>&1 |
|
|
|
nstall=install |
|
|
|
nstall=install |
|
|
|
for branch in $branches |
|
|
|
for branch in $branches |
|
|
|
do |
|
|
|
do |
|
|
|
|
|
|
|
echo >&3 "** $branch **" |
|
|
|
|
|
|
|
|
|
|
|
revision=$(git show-ref -s --verify "refs/heads/$branch") || { |
|
|
|
revision=$(git show-ref -s --verify "refs/heads/$branch") || { |
|
|
|
echo "** No $branch" |
|
|
|
echo "** No $branch" |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if installed=$($HOME/git-$branch/bin/git version) && |
|
|
|
if installed=$($HOME/git-$v/bin/git version) && |
|
|
|
version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') && |
|
|
|
{ |
|
|
|
version=$(git rev-parse --verify "$version") && |
|
|
|
version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') || |
|
|
|
|
|
|
|
version=v$(expr "$installed" : 'git version \(.*\)') |
|
|
|
|
|
|
|
} && |
|
|
|
|
|
|
|
version=$(git rev-parse --verify "$version^0") && |
|
|
|
test "z$version" = "z$revision" |
|
|
|
test "z$version" = "z$revision" |
|
|
|
then |
|
|
|
then |
|
|
|
echo "* up-to-date version \"$installed\" is already installed from $branch" |
|
|
|
echo "* up-to-date version \"$installed\" is already installed from $branch" |
|
|
|
continue |
|
|
|
test -n "$force" || continue |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "** $branch" && |
|
|
|
echo "** $branch" && |
|
|
@ -38,7 +48,7 @@ do |
|
|
|
Meta/Make $M -- test && |
|
|
|
Meta/Make $M -- test && |
|
|
|
Meta/Make clean || exit $? |
|
|
|
Meta/Make clean || exit $? |
|
|
|
|
|
|
|
|
|
|
|
done >./:all.log 2>&1 |
|
|
|
done >./:all.log 3>&2 2>&1 |
|
|
|
|
|
|
|
|
|
|
|
git checkout master |
|
|
|
git checkout master |
|
|
|
|
|
|
|
|
|
|
|