#!/bin/sh -x
rm -rf node_modules
npm install http-server
version=`grep '"version":' node_modules/http-server/package.json  | sed -e 's;.*: ";;' -e 's;".*;;'`
date=`date '+%Y%m%d'`
tar cvf - node_modules | gzip -9 >http-server-$version-$date.tar.gz
rm -rf node_modules
