Skip to content

Commit e9a3dea

Browse files
author
Junio C Hamano
committed
for better release testing...
1 parent 2cdd959 commit e9a3dea

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

Make

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# DDD=' -DUSE_SYMLINK_HEAD=0'
44
# PATH=/usr/bin:/bin
5-
PATH=$HOME/bin/Linux:/usr/bin:/bin
5+
6+
G=/opt/packrat/playpen/public/in-place/git/index/gitweb_config.perl
7+
PATH=$HOME/git-master/bin:/usr/bin:/bin
68
LANG=C
79
LC_CTYPE=C
810
export PATH LANG LC_CTYPE
@@ -11,15 +13,19 @@ export PATH LANG LC_CTYPE
1113
#GIT_SVN_NO_LIB=1
1214
#export GIT_SVN_NO_LIB
1315

14-
case "`git symbolic-ref HEAD`" in
15-
refs/heads/next)
16-
d="bindir=$HOME/bin/Linux gitexecdir=$HOME/bin/Linux" ;;
17-
refs/heads/maint)
18-
d="prefix=$HOME/git-maint" ;;
19-
refs/heads/master)
20-
d="prefix=$HOME/git-master" ;;
21-
refs/heads/pu)
22-
d="prefix=$HOME/git-pu" ;;
16+
head=`git symbolic-ref HEAD` &&
17+
branch=`expr "$head" : 'refs/heads/\(.*\)'` &&
18+
case "$branch" in
19+
next | maint | master | pu)
20+
d="prefix=$HOME/git-$branch" ;;
21+
snap)
22+
v=`git describe HEAD`
23+
expr "$v" : '.*-g[0-9a-f]*$' >/dev/null && {
24+
echo >&2 "You are on 'snap' but $v is not an official version."
25+
exit 1
26+
}
27+
d="prefix=$HOME/git-snap-$v"
28+
;;
2329
*)
2430
d="prefix=$HOME/git-test" ;;
2531
esac
@@ -47,6 +53,7 @@ done
4753

4854
: ${O=-O2}
4955
make $d \
56+
GITWEB_CONFIG=$G \
5057
PYTHON_PATH=/usr/bin/python2.4 \
5158
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
5259
WITH_SEND_EMAIL=YesPlease \

0 commit comments

Comments
 (0)