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
29 Wall
='-Wall -Wdeclaration-after-statement' tests
=
30 while case $# in 0) break ;; esac
33 -pedantic |
--pedantic)
35 rev=$
($GIT rev-parse HEAD
) &&
36 case "$($GIT merge-base "$old_style_def_fix" "$rev")" in
38 o
=-Wold-style-definition ;;
40 O
="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
41 # O="$O -fwrapv -fno-strict-overflow"
76 head=`$GIT symbolic-ref HEAD 2>/dev/null` &&
77 branch
=`expr "$head" : 'refs/heads/\(.*\)'` || branch
=detached
80 next | maint | master | pu | jch
)
81 prefix
="$inst_prefix/git-$branch"
84 v
=`$GIT describe HEAD`
85 expr "$v" : '.*-g[0-9a-f]*$' >/dev
/null
&& {
86 echo >&2 "You are on 'snap' but $v is not an official version."
89 prefix
="$inst_prefix/git-snap-$v"
92 prefix
="$inst_prefix/git-test" ;;
96 sh
-c 'git describe --abbrev=4 HEAD' >/dev
/null
2>&1 ||
{
97 $GIT describe
--abbrev=4 HEAD |
sed -e 's/-/./g' >version
100 d
="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease"
103 if test -z "${make:+set}" && test -x /usr
/local
/bin
/gmake
110 if test -n "${NO_CFLAGS+set}"
112 unset OK_TO_USE_CFLAGS
116 ETC_GITCONFIG
=$prefix/etc
/gitconfig \
117 ${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
118 ${tests:+"T=$tests"} \