Permalink
Browse files

build gh-pages index.html

  • Loading branch information...
1 parent a9a7ee3 commit d4c459181bb2a61b2810eb5a9d9919e29db49f23 @janl committed Feb 24, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
@@ -39,10 +39,14 @@ build-wrappers:
cp wrappers/mustache-$(version)/* $(version)
# update gh-pages with release links & travis
# TODO: add $(version)/index.html page (from template)
- # TODO: update index.html to point to $(vesion)
+ # update index.html to point to $(vesion)
+ cat index.html.pre > index.html
+ for release in `ls -p | grep '/$'`; do echo "<li><a href="${release}/">${release}</a></li>"; done >> index.html
+ cat index.html.post >> index.html
git add $(version)
git commit -m 'Release $(version)' index.html $(version)
git clean -fdx
+ git checkout new-build-system
# update npm
# update cdnjs

0 comments on commit d4c4591

Please sign in to comment.