Better checks on local gh-pages branch.

This commit is contained in:
Tony Garnock-Jones 2013-06-10 20:00:52 -04:00
parent 8cbf9f1c2e
commit b477046961
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
all: out
pages:
@(git branch -v | grep -q gh-pages || (echo local gh-pages branch missing; false))
@echo
@git branch -av | grep gh-pages
@echo
@(echo 'Is the branch up to date? Press enter to continue.'; read dummy)
git clone -b gh-pages ../.. pages
publish: out pages