From 4bd20c0984b3a38283430ab355eef5dcfcea91dd Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 9 Jun 2022 17:19:17 -0500 Subject: Apply my personal configurations to cgit For easy deployment. Actual code changes will go in master for sharing, but then will be merged here. --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5967a32..6d9eda9 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,24 @@ install: all $(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir) $(COPYTREE) filters/* $(DESTDIR)$(filterdir) +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 + +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 + install-doc: install-man install-html install-pdf install-man: doc-man -- cgit 1.4.1-21-gabe81