Make: fix test installation.

This commit is contained in:
Junio C Hamano
2008-06-26 21:12:17 -07:00
parent 08ac04a489
commit 167e415e02

10
Make
View File

@@ -21,18 +21,20 @@ branch=`expr "$head" : 'refs/heads/\(.*\)'` || branch=detached
case "$branch" in
next | maint | master | pu)
d="prefix=$HOME/git-$branch" ;;
prefix="$HOME/git-$branch"
;;
snap)
v=`$GIT describe HEAD`
expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
echo >&2 "You are on 'snap' but $v is not an official version."
exit 1
}
d="prefix=$HOME/git-snap-$v"
prefix="$HOME/git-snap-$v"
;;
*)
d="prefix=$HOME/git-test gitexecdir=\$(prefix)/libexec/git-core" ;;
prefix="$HOME/git-test" ;;
esac
d="prefix=$prefix"
: ${O=-O2}
@@ -71,7 +73,7 @@ sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
make $d \
GITWEB_CONFIG=$G \
PYTHON_PATH=/usr/bin/python2.4 \
ETC_GITCONFIG=$d/etc/gitconfig \
ETC_GITCONFIG=$prefix/etc/gitconfig \
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
"$@"
status=$?