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
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]"