branch store fix

This commit is contained in:
Mattias Andrée 2012-10-28 00:12:54 +02:00
parent b1b3b6253c
commit 28caf6268c

View file

@ -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 \
)