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