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