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