From: Junio C Hamano Date: Thu, 6 Nov 2008 01:02:24 +0000 (-0800) Subject: Doit: optionally test with /bin/dash X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2529c34a31cb761341456c757a34843b029be3fc;p=thirdparty%2Fgit.git Doit: optionally test with /bin/dash --- diff --git a/Doit b/Doit index f29d051b83..5a86451668 100755 --- a/Doit +++ b/Doit @@ -5,6 +5,7 @@ force= while case "$1" in -pedantic) M=$1 ;; -force) force=$1 ;; + -dash) with_dash=y ;; *) break ;; esac do @@ -17,6 +18,8 @@ test -z "$(git diff --cached --name-status)" || { } Meta/Make clean >/dev/null 2>&1 +test -f /bin/dash || with_dash= + : ${branches='next master maint pu jch'} for branch in $branches @@ -49,9 +52,19 @@ do echo "** $branch" && git checkout $branch && + Meta/Make $M -- $J clean && + case "$with_dash" in + y) + case "$branch" in + master | maint | next | jch) + Meta/Make $M -- $J SHELL_PATH=/bin/dash test && + Meta/Make $M -- $J clean + ;; + esac + ;; + esac && Meta/Make $M -- $J all && Meta/Make $M -- $J test && - Meta/Make $M -- install && case "$branch" in master | maint | next ) Meta/Make $M -- doc @@ -62,6 +75,7 @@ do *) : ;; esac && + Meta/Make $M -- install && Meta/Make clean || exit $? done >./:all.log 3>&2 2>&1