Some suggestions on your script.

On Wed, Jun 05, 2002 at 08:14:02AM +0200, The Unicorn wrote:
> I use the following  script I once wrote. It is still  not perfect and I
> know it can be  highy optimised, but most (99.999%) of  the time it just
> does the  job. I  have a  similar script  to cvsup  and build  the whole
> world, create  a new kernel and  run mergemaster as well.  It just makes
> life easier.
> 
> ...
>
> cvsup -g -L 2 /etc/cvsup-file 2>&1                                  && \
>
If you set up /etc/make.conf right, you can make that:
cd /usr/ports && make update

>
> ...
>
> pkgdb -F < /dev/tty > /dev/tty                                      && \
>
If you have any held ports, this will quietly (in the lines whirring past)
skip them, and you won't necessarily have a fixed pkgdb; pkgdb -Ff is 
usually what I want.

>
> ...
>
> portversion -c | tee /root/tmp/do_update                            && \
>
Given how long your script will take to run, I'm not sure there's any reason
not to just: portupgrade -Ra

If for some reason you don't want to, you might want to at least:
portupgrade -C -R -c ...  This will help keep the pkgdb in order for ports
that depend on other ports that they didn't used to depend on.

Just some thoughts.

--David Bushong

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to