Permalink
Browse files

strip newlines from date call

  • Loading branch information...
1 parent 6889628 commit 2040394f98eec4db2e90773e7d280f13eec9aaae @janl committed Feb 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
View
@@ -38,11 +38,14 @@ build-wrappers:
cp -r wrappers/mustache-* $(version)/
cp wrappers/mustache-$(version)/* $(version)
rm -rf wrappers
+
# update gh-pages with release links & travis
+
# add $(version)/index.html page (from template)
- date=`date`
+ date=$(strip `date`)
sed -e 's|%version%|$(version)|' \
-e 's|%date%|$(date)' release-index.html > $(version)/index.html
+
# update index.html to point to $(vesion)
cat index.html.pre > index.html
for release in `ls -p | grep '/'`; do relno=`echo $$release | sed -e 's|/||'`; echo "<li><a href=\"$${release}\">$${relno}</a></li>" >> index.html; done

0 comments on commit 2040394

Please sign in to comment.