diff options
author | Case Duckworth | 2022-06-09 17:19:17 -0500 |
---|---|---|
committer | Case Duckworth | 2022-06-09 17:19:17 -0500 |
commit | 4bd20c0984b3a38283430ab355eef5dcfcea91dd (patch) | |
tree | 2706b1e4fe75b180f2b1162353c348734d08abc7 /Makefile | |
parent | Bump version to 1.4.1 (diff) | |
download | cgit-4bd20c0984b3a38283430ab355eef5dcfcea91dd.tar.gz cgit-4bd20c0984b3a38283430ab355eef5dcfcea91dd.zip |
Apply my personal configurations to cgit
For easy deployment. Actual code changes will go in master for sharing, but then will be merged here.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 5967a32..6d9eda9 100644 --- a/Makefile +++ b/Makefile | |||
@@ -92,6 +92,24 @@ install: all | |||
92 | $(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir) | 92 | $(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir) |
93 | $(COPYTREE) filters/* $(DESTDIR)$(filterdir) | 93 | $(COPYTREE) filters/* $(DESTDIR)$(filterdir) |
94 | 94 | ||
95 | SERVER = root@hetzner | ||
96 | SERVER_ROOT_DIR = /usr/local/cgit | ||
97 | SERVER_ROOT = $(SERVER):$(SERVER_ROOT_DIR) | ||
98 | RSYNC = rsync -auvz | ||
99 | STATIC_ASSETS = cgit.css cgit.png robots.txt avatar.png favicon.ico | ||
100 | |||
101 | server-install: all | ||
102 | $(RSYNC) cgit $(SERVER_ROOT)/bin/cgit.cgi | ||
103 | $(RSYNC) $(STATIC_ASSETS) $(SERVER_ROOT)/share/ | ||
104 | $(RSYNC) cgitrc $(SERVER):/etc/ | ||
105 | $(RSYNC) cgit-about-filter.sh $(SERVER):/usr/bin/ | ||
106 | ssh root@hetzner \ | ||
107 | chown root:root \ | ||
108 | $(SERVER_ROOT_DIR)/bin/cgit.cgi \ | ||
109 | $(SERVER_ROOT_DIR)/share/* \ | ||
110 | /etc/cgitrc \ | ||
111 | /usr/bin/cgit-about-filter.sh | ||
112 | |||
95 | install-doc: install-man install-html install-pdf | 113 | install-doc: install-man install-html install-pdf |
96 | 114 | ||
97 | install-man: doc-man | 115 | install-man: doc-man |