Doit: optionally test with /bin/dash
Junio C Hamano committed
Nov 5, 2008 at 17:02 UTC
2529c34a31cb761341456c757a34843b029be3fc
1 file changed
+15
-1
Doit
+15
-1
@@ -5,6 +5,7 @@ force=
5
while case "$1" in
6
-pedantic) M=$1 ;;
7
-force) force=$1 ;;
8
+ -dash) with_dash=y ;;
9
*) break ;;
10
esac
11
do
@@ -17,6 +18,8 @@ test -z "$(git diff --cached --name-status)" || {
18
}
19
Meta/Make clean >/dev/null 2>&1
20
21
+test -f /bin/dash || with_dash=
22
+
23
: ${branches='next master maint pu jch'}
24
25
for branch in $branches
@@ -49,9 +52,19 @@ do
52
53
echo "** $branch" &&
54
git checkout $branch &&
55
+ Meta/Make $M -- $J clean &&
56
+ case "$with_dash" in
57
+ y)
58
+ case "$branch" in
59
+ master | maint | next | jch)
60
+ Meta/Make $M -- $J SHELL_PATH=/bin/dash test &&
61
+ Meta/Make $M -- $J clean
62
+ ;;
63
+ esac
64
+ ;;
65
+ esac &&
66
Meta/Make $M -- $J all &&
67
Meta/Make $M -- $J test &&
54
- Meta/Make $M -- install &&
68
case "$branch" in
69
master | maint | next )
70
Meta/Make $M -- doc
@@ -62,6 +75,7 @@ do
75
*)
76
: ;;
77
esac &&
78
+ Meta/Make $M -- install &&
79
Meta/Make clean || exit $?
80
81
done >./:all.log 3>&2 2>&1