Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

strip newlines from date call

  • Loading branch information...
commit 2040394f98eec4db2e90773e7d280f13eec9aaae 1 parent 6889628
Jan Lehnardt authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.