From 28caf6268c9fcecddb09821c26665e4029477af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sun, 28 Oct 2012 00:12:54 +0200 Subject: [PATCH] branch store fix --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index a3685086..622cd72d 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,13 @@ SHELL=bash -BRANCH="$(git branch | grep \\\* | sed -e s/\*\ //g)" - - manual-update: - git checkout master - makeinfo --html "./manuals/ponysay.texinfo" - git add "./ponysay" - git stash - git checkout $(BRANCH) - git rm "./pages/ponysay/*" - git stash pop + (branch=$$(git branch | grep \\\* | sed -e s/\*\ //g) \ + git checkout master \ + makeinfo --html "./manuals/ponysay.texinfo" \ + git add "./ponysay" \ + git stash \ + git checkout $(BRANCH) \ + git rm "./pages/ponysay/*" \ + git stash pop \ + )