#!/bin/bash CVSUSER=:pserver:anonymous MODULE=$(basename $0 -cvs_checkout.sh) DATE=$(date +%Y%m%d) set -x rm -rf $MODULE cvs -z3 -d$CVSUSER@cvs.freedesktop.org:/cvs/portland checkout -P portland/$MODULE pushd portland tar czf ../$MODULE-${DATE}.tgz $MODULE popd rm -rf portland