Install master and next at different places.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Apr 18, 2006 at 02:42 UTC
bf95706c1059b78ba0de58ae0c559a6e692a183e
1 file changed
+10
-2
Make
+10
-2
index 7c8b29763e..71586e28f0 100755
--- a/Make
+++ b/Make
@@ -7,9 +7,17 @@ LANG=C
LC_CTYPE=C
export PATH LANG LC_CTYPE
+case "`git symbolic-ref HEAD`" in
+refs/heads/master)
+ d="prefix=$HOME/git-master" ;;
+refs/heads/pu)
+ d="prefix=$HOME/git-pu" ;;
+*)
+ d="bindir=$HOME/bin/Linux gitexecdir=$HOME/bin/Linux" ;;
+esac
+
: ${O=-O2}
-make bindir=$HOME/bin/Linux \
- gitexecdir=$HOME/bin/Linux \
+make $d \
PYTHON_PATH=/usr/bin/python2.4 \
CFLAGS="$O -Wall -Wdeclaration-after-statement -g" \
WITH_SEND_EMAIL=YesPlease \