Add make up and make update (update the working copy).
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 08:56:24 +0000 (10:56 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 08:57:21 +0000 (10:57 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Makefile

index 21b1134..1fa6d71 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,10 @@ q:
 %: %.in Makefile ChangeLog
        sed -e 's,@VERSION@,$(VERSION),g' $< > $@
 
+up: update
+update:
+       @git fetch && git rebase `git symbolic-ref HEAD | sed -e 's~refs/heads/~origin/~'` && git submodule update
+
 ################################################################################
 # targets
 
@@ -243,3 +247,4 @@ restart-listrpc: stop-listrpc start-listrpc
 .PHONY: wiki build-wiki
 .PHONY: banana banana-sub htdocs/images/banana htdocs/css/banana.css
 .PHONY: start-listrpc start-listrpc-fg stop-listrpc restart-listrpc
+.PHONY: up update