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