From: Junio C Hamano Date: Tue, 8 Sep 2009 00:51:24 +0000 (-0700) Subject: Dothem: build 'pu' last X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa10d2d383a5715560c8bd081e959d721d7a1643;p=thirdparty%2Fgit.git Dothem: build 'pu' last --- diff --git a/Dothem b/Dothem index 8c59d404f8..710d7c1619 100755 --- a/Dothem +++ b/Dothem @@ -52,7 +52,7 @@ then exit 1 fi fi -test -n "$branches" || branches='next master maint pu jch' +test -n "$branches" || branches='next master maint jch pu' test -n "$jobs" || jobs=-j2 for branch in $branches @@ -136,6 +136,7 @@ do ;; esac && + save=$(git rev-parse HEAD) && { test "z$with_dash" != 'zy' || Meta/Make $M $test -- $jobs SHELL_PATH=/bin/dash $dotest @@ -149,7 +150,12 @@ do { test z$install = znoinstall || - Meta/Make $M -- install + if test "$save" = "$(git rev-parse HEAD)" + then + Meta/Make $M -- install + else + echo >&2 "Head moved--not installing" + fi } || exit $? git reset --hard