#!/bin/sh VERSION=$1 hg clone https://googlefontdirectory.googlecode.com/hg/ google-lato-fonts-$VERSION/ pushd google-lato-fonts-$VERSION/ mv lato/* . find . -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; popd tar -cjf google-lato-fonts-$VERSION.tar.bz2 google-lato-fonts-$VERSION/