#!/bin/sh
rm -rf skopeo
mkdir skopeo
export GOPATH=`pwd`/skopeo
git clone --depth 1 https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
( cd $GOPATH/src/github.com/containers/skopeo && go get -v -d ./... )
tar cf - --exclude .git skopeo | xz -9 >skopeo-`date '+%Y%m%d'`.tar.xz
rm -rf skopeo
