summaryrefslogtreecommitdiff
path: root/Makefile
blob: e1f0e3e38ed9bd0da8a6b27896b68e6a6d1bea6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
all: FORCE

pull:
	@rsync -e "ssh ${LIGA_SSH_OPTS}" -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http

autocommit: pull
	@cd http && git diff --quiet || (date && git add . && git commit -m 'Autocommit' && GIT_SSH_COMMAND="ssh ${LIGA_SSH_OPTS}" git push -q)

players: FORCE
	./dumps/import-players.sh

paid: players FORCE
	./dumps/check-all-paid.sh

dumps: FORCE
	s3cmd -c dumps/.s3config sync ${LIGA_S3_BUCKET} dumps/sync/
	./dumps/load-dumps.sh

butler: dumps FORCE
	python butler/butler.py 1+2 | mysql ${LIGA_MYSQL_CONNECTION_OPTS}
	python butler/butler.py 1   | mysql ${LIGA_MYSQL_CONNECTION_OPTS}
	python butler/butler.py 2   | mysql ${LIGA_MYSQL_CONNECTION_OPTS}

ausbutler: FORCE
	./ausbutler/ausbutler-all.sh

playoff: FORCE
	./playoff/scripts/generate.sh
	./playoff/scripts/sync.sh

FORCE: