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