]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Tweak for OBSD and SunOS
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2010 08:31:20 +0000 (00:31 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2010 08:31:20 +0000 (00:31 -0800)
Dothem
Make

diff --git a/Dothem b/Dothem
index 2f6d027fad5ffa3fe8044eac3ff6cf13cb8207a7..3106a30b288f763c67fd80e9f37c4b17d0df0320 100755 (executable)
--- a/Dothem
+++ b/Dothem
@@ -147,15 +147,23 @@ do
                esac &&
 
                save=$(git rev-parse HEAD) &&
+
                {
                        test "z$with_dash" != 'zy' ||
-                       Meta/Make $M $test -- $jobs SHELL_PATH=/bin/dash $dotest
+                       Meta/Make $M ${test+"$test"} -- $jobs SHELL_PATH=/bin/dash $dotest
                } &&
 
-               Meta/Make $M $test -- $jobs $dotest &&
+               Meta/Make $M ${test+"$test"} -- $jobs $dotest &&
+
                {
                        test -n "$nodoc" ||
-                       Meta/Make $M -- doc install-man install-html
+                       if test "$save" = "$(git rev-parse HEAD)"
+                       then
+                               Meta/Make $M -- $jobs doc &&
+                               Meta/Make $M -- install-man install-html
+                       else
+                               echo >&2 "Head moved--not installing docs"
+                       fi
                } &&
 
                {
diff --git a/Make b/Make
index c6bf6e0d85e651a4c6ceeac770b11939a55b5809..3e0c515440028488a521680ea25b175d7f046a19 100755 (executable)
--- a/Make
+++ b/Make
@@ -57,12 +57,16 @@ Wall='-Wall -Wdeclaration-after-statement' tests= jobs=
 case `uname` in
 OpenBSD)
        NEEDS_CRYPTO_WITH_SSL=YesPlease ; export NEEDS_CRYPTO_WITH_SSL
-       Wall= ;;
+       GIT_SKIP_TESTS="t9200 t9502 $GIT_SKIP_TESTS"; export GIT_SKIP_TESTS
+       NO_PEDANTIC=CannotDo Wall=
+       ;;
 FreeBSD)
        OLD_ICONV=YesPlease; export OLD_ICONV
        ;;
 SunOS)
        NEEDS_CRYPTO_WITH_SSL=YesPlease ; export NEEDS_CRYPTO_WITH_SSL
+       GIT_SKIP_TESTS="$GIT_SKIP_TESTS"; export GIT_SKIP_TESTS
+       NO_PEDANTIC=CannotDo Wall=
        ;;
 esac
 
@@ -76,7 +80,11 @@ do
                $old_style_def_fix)
                        o=-Wold-style-definition ;;
                esac
-               O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
+               case "$NO_PEDANTIC" in
+               ?*)     ;;
+               '')
+                       O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast" ;;
+               esac
                # -Wvla
                # O="$O -fwrapv -fno-strict-overflow"
                ;;