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