Doit: allow private editions

This commit is contained in:
Junio C Hamano
2009-01-23 10:36:53 -08:00
committed by Junio C Hamano
parent 7cd55ea54f
commit 6d8ad71377

18
Doit
View File

@@ -31,6 +31,9 @@ do
continue
}
private=$(git rev-parse -q --verify private-$branch 2>/dev/null)
case $? in 0|1) ;; *) exit $? ;; esac
if installed=$($HOME/git-$branch/bin/git version) &&
if version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
then
@@ -52,6 +55,18 @@ do
echo "** $branch" &&
git checkout $branch &&
case "$private" in
'')
;;
?*)
git merge --squash --no-commit "$private" || {
echo >&2 "Cannot apply private edition changes"
git reset --hard
}
;;
esac &&
Meta/Make $M -- $J clean &&
case "$with_dash" in
y)
@@ -63,6 +78,7 @@ do
esac
;;
esac &&
Meta/Make $M -- $J all &&
Meta/Make $M -- $J test &&
case "$branch" in
@@ -78,6 +94,8 @@ do
Meta/Make $M -- install &&
Meta/Make clean || exit $?
git reset --hard
done >./:all.log 3>&2 2>&1
git checkout master