3 case "$(git version 2>/dev/null)" in
7 echo >&2 "No git to bootstrap"
15 probed
=${p%/git-active/bin}
16 if test "$probed" != "$p"
26 old_style_def_fix
=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
30 for cv
in PYTHON_PATH
=python TCL_PATH
=tclsh TCLTKPATH
=wish
35 if test -f "/usr/bin/$cmd"
39 for p
in /usr
/bin
/usr
/local
/bin
43 echo "$var=$p/$cmd; export $var"
46 found
=$
(find "$p/$cmd"* -type f
2>/dev
/null |
head -n 1)
49 echo "$var=$found; export $var"
56 Wall
='-Wall -Wdeclaration-after-statement' tests
= jobs=
59 NEEDS_CRYPTO_WITH_SSL
=YesPlease
; export NEEDS_CRYPTO_WITH_SSL
60 GIT_SKIP_TESTS
="t9200 t9502 $GIT_SKIP_TESTS"; export GIT_SKIP_TESTS
61 SHELL_PATH
=/usr
/local
/bin
/bash
; export SHELL_PATH
62 NO_PEDANTIC
=CannotDo NO_JOBS
=CannotDo
66 OLD_ICONV
=YesPlease
; export OLD_ICONV
67 GIT_SKIP_TESTS
="t5560 $GIT_SKIP_TESTS"; export GIT_SKIP_TESTS
70 NEEDS_CRYPTO_WITH_SSL
=YesPlease
; export NEEDS_CRYPTO_WITH_SSL
71 GIT_SKIP_TESTS
="$GIT_SKIP_TESTS"; export GIT_SKIP_TESTS
72 NO_PEDANTIC
=CannotDo Wall
=
76 while case $# in 0) break ;; esac
79 -pedantic |
--pedantic)
81 rev=$
($GIT rev-parse HEAD
) &&
82 case "$($GIT merge-base "$old_style_def_fix" "$rev")" in
84 o
=-Wold-style-definition ;;
86 case "$NO_PEDANTIC" in
89 O
="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
90 O
="$O -Wpointer-arith"
94 # O="$O -fwrapv -fno-strict-overflow"
135 head=`$GIT symbolic-ref HEAD 2>/dev/null` &&
136 branch
=`expr "$head" : 'refs/heads/\(.*\)'` || branch
=detached
139 next | maint | master | pu | jch
)
140 prefix
="$inst_prefix/git-$branch"
143 v
=`$GIT describe HEAD`
144 expr "$v" : '.*-g[0-9a-f]*$' >/dev
/null
&& {
145 echo >&2 "You are on 'snap' but $v is not an official version."
148 prefix
="$inst_prefix/git-snap-$v"
151 prefix
="$inst_prefix/git-test" ;;
155 sh
-c 'git describe --abbrev=4 HEAD' >/dev
/null
2>&1 ||
{
156 $GIT describe
--abbrev=4 HEAD |
sed -e 's/-/./g' >version
160 MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"
161 ASCIIDOC_NO_ROFF=YesPlease
167 if test -z "${make:+set}" && {
168 test -x /usr
/local
/bin
/gmake ||
169 test -x /usr
/bin
/gmake
174 if test -f /bin
/ginstall
176 set INSTALL
=ginstall
"$@"
181 if test -n "${NO_CFLAGS+set}"
183 unset OK_TO_USE_CFLAGS
187 ETC_GITCONFIG
=$prefix/etc
/gitconfig \
188 ${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
189 ${tests:+"T=$tests"} \