Install master and next at different places.
authorJunio C Hamano <junkio@cox.net>
Tue, 18 Apr 2006 09:42:36 +0000 (02:42 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 18 Apr 2006 09:42:36 +0000 (02:42 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
Make

diff --git a/Make b/Make
index 7c8b297..71586e2 100755 (executable)
--- 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 \