#!/bin/sh -x
rm -rf nnpack
git clone https://github.com/Maratyszcza/NNPACK.git nnpack
git clone https://github.com/Maratyszcza/pthreadpool.git nnpack/deps/pthreadpool
git clone https://github.com/Maratyszcza/cpuinfo.git nnpack/deps/cpuinfo
git clone https://github.com/Maratyszcza/FXdiv.git nnpack/deps/fxdiv
git clone https://github.com/Maratyszcza/FP16.git nnpack/deps/fp16
git clone https://github.com/Maratyszcza/psimd.git nnpack/deps/psimd
git clone https://github.com/google/googletest.git nnpack/deps/googletest
git clone https://github.com/google/benchmark.git nnpack/deps/googlebenchmark
date=`date '+%Y%m%d'`
tar cvf - --exclude .git nnpack | xz -9 >nnpack-$date.tar.xz
rm -rf nnpack
