moving gitreceiv into makefile with sshcommand
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,7 +1,9 @@
|
||||
GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
|
||||
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand
|
||||
|
||||
all: install
|
||||
|
||||
install: submodule
|
||||
install: submodule gitreceive sshcommand
|
||||
cp receiver /home/git/receiver
|
||||
cp deploystep /home/git/deploystep
|
||||
cp buildstep/buildstep /home/git/buildstep
|
||||
@@ -12,5 +14,14 @@ submodule:
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
gitreceive:
|
||||
wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
|
||||
chmod +x /usr/local/bin/gitreceive
|
||||
[[ ! -d /home/git ]] && gitreceive init
|
||||
|
||||
sshcommand:
|
||||
wget -O /usr/local/bin/sshcommand ${SSHCOMMAND_URL}
|
||||
chmod +x /usr/local/bin/sshcommand
|
||||
|
||||
count:
|
||||
cat receiver deploystep bootstrap.sh nginx-app-conf nginx-reloader.conf | wc -l
|
||||
Reference in New Issue
Block a user