#! /bin/bash hg clone http://zbar.hg.sourceforge.net:8000/hgroot/zbar osc rm zbar-*.tar.bz2 pushd zbar ARC=`date +"zbar-0.10_%Y_%m_%d.tar.bz2"` hg archive "../$ARC" popd rm -rfv zbar osc add $ARC