10aa90
#!/bin/bash
10aa90
10aa90
if [ $# -gt 0 ]; then  
10aa90
  DATE=$1
10aa90
  shift
10aa90
else
10aa90
  DATE=$(date +%Y%m%d)
10aa90
fi
10aa90
10aa90
MODULE="$(basename $0 -cvs_checkout.sh)"
10aa90
10aa90
set -x
10aa90
rm -rf $MODULE
10aa90
10aa90
cvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy export -D $DATE $MODULE 
10aa90
10aa90
## tar it up
10aa90
tar czf $MODULE-${DATE}cvs.tar.gz $MODULE
10aa90
10aa90
## cleanup
10aa90
rm -rf $MODULE
10aa90