Merge branch 'fixes'
authorJunio C Hamano <junkio@cox.net>
Mon, 10 Oct 2005 23:03:43 +0000 (16:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 10 Oct 2005 23:03:43 +0000 (16:03 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
1  2 
Makefile
git.sh

diff --cc Makefile
+++ b/Makefile
@@@ -194,14 -176,11 +194,15 @@@ ifeq ($(uname_S),SunOS
        TAR = gtar
        PLATFORM_DEFINES += -D__EXTENSIONS__
  endif
 -ifneq (,$(findstring arm,$(shell uname -m)))
 -      ARM_SHA1 = YesPlease
 +ifeq ($(uname_O),Cygwin)
 +      NO_STRCASESTR = YesPlease
 +      NEEDS_LIBICONV = YesPlease
 +      NO_IPV6 = YesPlease
 +      X = .exe
 +      PLATFORM_DEFINES += -DUSE_SYMLINK_HEAD=0
  endif
 -ifeq ($(shell uname -s),OpenBSD)
 +ifeq ($(uname_S),OpenBSD)
+       NO_STRCASESTR = YesPlease
        NEEDS_LIBICONV = YesPlease
        PLATFORM_DEFINES += -I/usr/local/include -L/usr/local/lib
  endif
diff --cc git.sh
--- 1/git.sh
--- 2/git.sh
+++ b/git.sh
@@@ -11,17 -11,7 +11,18 @@@ case "$#" i
                echo "git version @@GIT_VERSION@@"
                exit 0 ;;
        esac
 -      test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@" ;;
 +      
-       test -x $path/git-$cmd && exec $path/git-$cmd "$@"
++      test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@"
 +      
 +      case '@@X@@' in
 +          '')
 +              ;;
 +          *)
-               test -x $path/git-$cmd@@X@@ && exec $path/git-$cmd@@X@@ "$@"
++              test -x "$path/git-$cmd@@X@@" &&
++              exec "$path/git-$cmd@@X@@" "$@"
 +              ;;
 +      esac
 +      ;;
  esac
  
  echo "Usage: git COMMAND [OPTIONS] [TARGET]"