#!/bin/sh
git clone git://github.com/lxc/cgmanager
VERSION="$(date "+%Y%m%d")_$(cd cgmanager ; git log --pretty=format:'%h' -n 1 )"
mv cgmanager cgmanager-$VERSION
rm -r cgmanager-$VERSION/.git
tar cf cgmanager-$VERSION.tar cgmanager-$VERSION
xz -9 cgmanager-$VERSION.tar
rm -r cgmanager-$VERSION
