#!/bin/sh -x
rm -rf caffe
git clone https://github.com/BVLC/caffe.git
date=`date '+%Y%m%d'`
tar cvf - --exclude .git caffe | xz -9 >caffe-$date.tar.xz
rm -rf caffe
