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