about summary refs log tree commit diff stats
path: root/cgit.conf
blob: fa281689004eb4dec077d474a14d42eb73ebfb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- makefile -*-
SERVER = root@hetzner
SERVER_ROOT_DIR = /usr/local/cgit
SERVER_ROOT = $(SERVER):$(SERVER_ROOT_DIR)
RSYNC = rsync -auvz
STATIC_ASSETS = cgit.css cgit.png robots.txt avatar.png favicon.ico footer.txt

server-install: all
	$(RSYNC) cgit $(SERVER_ROOT)/bin/cgit.cgi
	$(RSYNC) $(STATIC_ASSETS) $(SERVER_ROOT)/share/
	$(RSYNC) cgitrc $(SERVER):/etc/
	$(RSYNC) cgit-about-filter.sh $(SERVER):/usr/bin/
	ssh root@hetzner \
		chown root:root \
		$(SERVER_ROOT_DIR)/bin/cgit.cgi \
		$(SERVER_ROOT_DIR)/share/* \
		/etc/cgitrc \
		/usr/bin/cgit-about-filter.sh