teamplayer: Allow hg branch to be specified.

Also change the TP_REPO to point to bitbucket.
This commit is contained in:
Albert Hopkins 2013-10-19 16:57:48 +00:00
parent 1510c83387
commit 23ab660d15
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
TP_REPO ?= ../../teamplayer TP_REPO ?= https://bitbucket.org/marduk/teamplayer
TP_BRANCH ?= default
TP_USER = teamplayer TP_USER = teamplayer
TP_HOME = /opt/teamplayer TP_HOME = /opt/teamplayer
TP_DB = /var/lib/teamplayer TP_DB = /var/lib/teamplayer
@ -39,7 +40,7 @@ endif
$(inroot) useradd -c "Teamplayer Server" -G postgres -U -d $(TP_HOME) $(TP_USER) $(inroot) useradd -c "Teamplayer Server" -G postgres -U -d $(TP_HOME) $(TP_USER)
rm -rf $(CHROOT)/$(TP_HOME) rm -rf $(CHROOT)/$(TP_HOME)
mkdir -p $(CHROOT)/$(TP_HOME) mkdir -p $(CHROOT)/$(TP_HOME)
hg clone --pull $(TP_REPO) $(CHROOT)/$(TP_HOME)/teamplayer hg clone -u $(TP_BRANCH) $(TP_REPO) $(CHROOT)/$(TP_HOME)/teamplayer
cp bash_profile $(CHROOT)$(TP_HOME)/.bash_profile cp bash_profile $(CHROOT)$(TP_HOME)/.bash_profile
$(inroot) virtualenv $(TP_HOME) $(inroot) virtualenv $(TP_HOME)
$(inroot) bash -c ". $(TP_HOME)/bin/activate ; pip install -e $(TP_HOME)/teamplayer" $(inroot) bash -c ". $(TP_HOME)/bin/activate ; pip install -e $(TP_HOME)/teamplayer"