#!/bin/sh -x
rm -rf swc
git clone --depth 1 https://github.com/swc-project/swc swc
(   cd swc
    HOME=`pwd`
    cargo fetch    
)
tar cvf - --exclude .git swc | xz -9 >swc-`date '+%Y%m%d'`.tar.xz
rm -rf swc
