5 case "$(git version 2>/dev/null)" in
9 echo >&2 "No git to bootstrap"
18 probed
=${p%/git-active/bin}
19 if test "$probed" != "$p"
29 old_style_def_fix
=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
33 for cv
in PYTHON_PATH
=python TCL_PATH
=tclsh TCLTKPATH
=wish
38 if test -f "/usr/bin/$cmd"
42 for p
in /usr
/bin
/usr
/local
/bin
46 echo "$var=$p/$cmd; export $var"
49 found
=$
(find "$p/$cmd"* -type f
2>/dev
/null |
head -n 1)
52 echo "$var=$found; export $var"
59 Wall
='-Wall -Wdeclaration-after-statement' tests
= jobs= skip
= oldtest
=
66 OLD_ICONV
=YesPlease
; export OLD_ICONV
70 OLD_ICONV
=YesPlease
; export OLD_ICONV
74 NEEDS_CRYPTO_WITH_SSL
=YesPlease
; export NEEDS_CRYPTO_WITH_SSL
75 NO_PEDANTIC
=CannotDo Wall
=
79 while case $# in 0) break ;; esac
82 -pedantic |
--pedantic)
84 rev=$
($GIT rev-parse HEAD
) &&
85 case "$($GIT merge-base "$old_style_def_fix" "$rev")" in
87 o
=-Wold-style-definition ;;
89 case "$NO_PEDANTIC" in
92 O
="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
93 O
="$O -Wpointer-arith -Woverflow -Wunused"
97 # O="$O -fwrapv -fno-strict-overflow"
105 -noprove |
--noprove)
138 if test -z "$tests" && test -n "$skip"
140 GIT_SKIP_TESTS
="${GIT_SKIP_TESTS:-$skip}"
141 export GIT_SKIP_TESTS
143 if test -z "$oldtest" &&
144 sh
-c 'prove --version >/dev/null 2>&1' &&
145 sh
-c 'prove --exec : >/dev/null 2>&1'
147 DEFAULT_TEST_TARGET
=prove GIT_PROVE_OPTS
="$jobs"
148 export DEFAULT_TEST_TARGET GIT_PROVE_OPTS
154 head=`$GIT symbolic-ref HEAD 2>/dev/null` &&
155 branch
=`expr "$head" : 'refs/heads/\(.*\)'` || branch
=detached
158 next | maint | master | pu | jch
)
159 prefix
="$inst_prefix/git-$branch"
162 v
=`$GIT describe HEAD`
163 expr "$v" : '.*-g[0-9a-f]*$' >/dev
/null
&& {
164 echo >&2 "You are on 'snap' but $v is not an official version."
167 prefix
="$inst_prefix/git-snap-$v"
170 prefix
="$inst_prefix/git-test" ;;
174 sh
-c 'git describe --abbrev=4 HEAD' >/dev
/null
2>&1 ||
{
175 $GIT describe
--abbrev=4 HEAD |
sed -e 's/-/./g' >version
179 MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"
180 ASCIIDOC_NO_ROFF=YesPlease
186 if test -z "${make:+set}" && {
187 test -x /usr
/local
/bin
/gmake ||
188 test -x /usr
/pkg
/bin
/gmake ||
189 test -x /usr
/bin
/gmake
194 if test -f /bin
/ginstall
196 set INSTALL
=ginstall
"$@"
201 if test -n "${NO_CFLAGS+set}"
203 unset OK_TO_USE_CFLAGS
207 ETC_GITCONFIG
=$prefix/etc
/gitconfig \
208 ${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
209 ${tests:+"T=$tests"} \