#!/bin/sh -x
rm -rf retdec
git clone https://github.com/avast-tl/retdec.git
( cd retdec
  git submodule init
  git submodule update
) || exit $?
date=`date '+%Y%m%d'`
tar cvf - --exclude .git retdec | xz -9 >retdec-$date.tar.xz
rm -rf retdec
