Skip to content

Commit 167e415

Browse files
committed
Make: fix test installation.
1 parent 08ac04a commit 167e415

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Make

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ branch=`expr "$head" : 'refs/heads/\(.*\)'` || branch=detached
2121

2222
case "$branch" in
2323
next | maint | master | pu)
24-
d="prefix=$HOME/git-$branch" ;;
24+
prefix="$HOME/git-$branch"
25+
;;
2526
snap)
2627
v=`$GIT describe HEAD`
2728
expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
2829
echo >&2 "You are on 'snap' but $v is not an official version."
2930
exit 1
3031
}
31-
d="prefix=$HOME/git-snap-$v"
32+
prefix="$HOME/git-snap-$v"
3233
;;
3334
*)
34-
d="prefix=$HOME/git-test gitexecdir=\$(prefix)/libexec/git-core" ;;
35+
prefix="$HOME/git-test" ;;
3536
esac
37+
d="prefix=$prefix"
3638

3739
: ${O=-O2}
3840

@@ -71,7 +73,7 @@ sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
7173
make $d \
7274
GITWEB_CONFIG=$G \
7375
PYTHON_PATH=/usr/bin/python2.4 \
74-
ETC_GITCONFIG=$d/etc/gitconfig \
76+
ETC_GITCONFIG=$prefix/etc/gitconfig \
7577
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
7678
"$@"
7779
status=$?

0 commit comments

Comments
 (0)