#!/bin/bash
pkgname=projectx
pkgver=$(date +%Y%m%d)

cvs -d:pserver:anonymous@project-x.cvs.sourceforge.net:/cvsroot/project-x login
cvs -z3 -d:pserver:anonymous@project-x.cvs.sourceforge.net:/cvsroot/project-x co -P Project-X

tar czf $pkgname-$pkgver.src.tar.gz Project-X
sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD
