I think to make the checkout just work you need the
Repository file to be something like (for dotlrn/tcl/CVS/Repository):
openacs-4/packages/dotlrn/tcl
so that script won't work.
Also, you need to have a directory entry in the packages/CVS/Repository file for each dotlrn package, which would be a line like:
D/dotlrn////