On Wednesday 17 August 2005 11:59 am, Dave Feustel wrote:
> Sorry about that. Here are my cvs update functions:
> =========
> /home/daf}functions
> update_ports() {
>     cd /usr/ports
>     sudo cvs -q -d $CVSROOT up -r OPENBSD_3_7
> }
> update_src() {
>     cd /usr/src
>     sudo cvs -q -d $CVSROOT up -r OPENBSD_3_7
> }
>
> [EMAIL PROTECTED]:/cvs
> (
> =========
>

I generally don't script sudo, so I can't comment on the syntax, but I do 
believe that you want to move the CVSROOT definition to the front of your 
script (before its first reference).

> > Anyway, your tree is borked
>
> I created /usr/ports and /usr/src by copying them from the 3.7 cdrom.
> I then updated those trees using the above ksh functions.
>
> For the moment I want to just update the release distribution
> and rebuild /usr/ports/x11/kde and /usr/src/sys.
>
> Should I forget the cdrom and just copy the whole /usr/ports and
> /usr/src from the repository?
>

Yes, I personally have had trouble similar to what you are experiencing when 
changing mirrors after extracting the source on the CD.  I'm sure it is 
something in the syntax I used, but I never figured out what the problem was.

# rm -rf /usr/src/*
# rm -rf /usr/obj/*
# cd /usr/
# cvs -q -d [EMAIL PROTECTED]:/cvs get -PA -rOPENBSD_3_7 src

That will get you a clean checkout of the 3.7-stable tree.

Tim Donahue

Reply via email to