Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
casutton committed May 21, 2017
1 parent f14efe1 commit 719c176
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TMPDIR := $(shell mktemp -d -t tempdir)

publish:
if [ ! -d $(TMPDIR) ]; then echo Error: Could not find directory $(TMPDIR); fi
jekyll build -d $(TMPDIR)
git checkout master
rsync $(TMPDIR) .
git commit -a
git push
git checkout source
rm -rf $(TMPDIR)


0 comments on commit 719c176

Please sign in to comment.