diff options
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |