Probably worth noting in the OP that this script relies on CanAdv (at least according to the clannie who asked why it was asking about CanAdv).
Yeah, although if you use the SVN command, also in the OP, it grabs canadv as a dependency so this could just be a "training" issue