Permalink
Browse files

better makefile

  • Loading branch information...
1 parent e7741e9 commit a3213091862102b51327e2c5acc589d2ea7faf7d @jeromeetienne committed Apr 7, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 Makefile
View
7 Makefile
@@ -25,7 +25,10 @@ deploy: build deployGhPage
deployGhPage:
rm -rf /tmp/$(PROJECT_NAME)GhPages
(cd /tmp && git clone git@github.com:jeromeetienne/$(PROJECT_NAME).git $(PROJECT_NAME)GhPages)
- (cd /tmp/$(PROJECT_NAME)GhPages && git checkout gh-pages)
- cp -a examples src Makefile README.md /tmp/$(PROJECT_NAME)GhPages
+ (cd /tmp/$(PROJECT_NAME)GhPages && git push origin :gh-pages)
+ (cd /tmp/$(PROJECT_NAME)GhPages && git symbolic-ref HEAD refs/heads/gh-pages)
+ (cd /tmp/$(PROJECT_NAME)GhPages && rm .git/index)
+ (cd /tmp/$(PROJECT_NAME)GhPages && git clean -fdx)
+ cp -a examples src Makefile *.*README.md /tmp/$(PROJECT_NAME)GhPages
(cd /tmp/$(PROJECT_NAME)GhPages && git add . && git commit -a -m "Another deployement" && git push origin gh-pages)
#rm -rf /tmp/$(PROJECT_NAME)GhPages

0 comments on commit a321309

Please sign in to comment.