<commit_before>GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand

all: install

install: submodule gitreceive sshcommand
	cp receiver /home/git/receiver
	cp deploystep /home/git/deploystep
	cp buildstep/buildstep /home/git/buildstep
	cp nginx-app-conf /home/git/nginx-app-conf
	cp nginx-reloader.conf /etc/init/nginx-reloader.conf

submodule:
	git submodule init
	git submodule update

gitreceive:
	wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
	chmod +x /usr/local/bin/gitreceive
	test ! -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<commit_msg>just let it override receiver, we install it again after<commit_after>GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand

all: install

install: submodule gitreceive sshcommand
	cp receiver /home/git/receiver
	cp deploystep /home/git/deploystep
	cp buildstep/buildstep /home/git/buildstep
	cp nginx-app-conf /home/git/nginx-app-conf
	cp nginx-reloader.conf /etc/init/nginx-reloader.conf

submodule:
	git submodule init
	git submodule update

gitreceive:
	wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
	chmod +x /usr/local/bin/gitreceive
	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
{'fraction_non_alphanumeric': 0.1059171597633136, 'fraction_numerical': 0.0, 'mean_word_length': 4.526143790849673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4947718', 'n_tokens_mistral': 658, 'n_tokens_neox': 609, 'n_words': 129}