]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Dothem: fix dotest/nodoc conditional
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 17:18:29 +0000 (10:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 17:18:39 +0000 (10:18 -0700)
The test for nodoc was wrong and also missing from jch branch.
When dotest is not set, make was run twice.  By running make with
just $dotest, we can build either (implicit) all or test.

Dothem

diff --git a/Dothem b/Dothem
index 9425b68c7d01a5fb919cf32a62307e9bff65623b..c503a3767d57a869b26ed2eb6ffea60303c05c2e 100755 (executable)
--- a/Dothem
+++ b/Dothem
@@ -91,14 +91,13 @@ do
                        ;;
                esac &&
 
-               Meta/Make $M -- $J all &&
                Meta/Make $M -- $J $dotest &&
                case "$branch" in
                jch)
-                       Meta/Make $M -- doc install-doc
+                       test -n "$nodoc" || Meta/Make $M -- doc install-doc
                        ;;
                master | maint | next )
-                       test -z "$nodoc" || Meta/Make $M -- doc
+                       test -n "$nodoc" || Meta/Make $M -- doc
                        ;;
                *)
                        : ;;