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