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}
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=$?