aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 660f109..cd5467b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,10 @@
DESTDIR ?= /var/www/git.replicant.us
+# For make update
+REMOTE ?= origin
+BRANCH ?= master
+
all: help install-sources
help:
@@ -11,6 +15,7 @@ help:
@echo " directory for AGPLv3+ compliance"
@echo "make install-hooks: Deploys a git hook to automatically instal the"
@echo " source code on git checkout"
+ @echo "make update: Pull in last changes from upstream in the current git repository"
install-hooks: hooks/post-checkout
install $< -m 770 -t .git/hooks
@@ -31,3 +36,10 @@ apache2.tar:
apache2.tar.xz: apache2.tar
rm -f $@
xz -9e --verbose $<
+
+update:
+ git fetch $(REMOTE)
+ git verify-commit $(REMOTE)/$(BRANCH)
+ git rebase $(REMOTE)/$(BRANCH)
+ make install-sources
+ systemctl reload apache2