Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2002 00:56:37 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        George Vagner <george@vagner.com>
Cc:        questions@freebsd.org
Subject:   Re: make world script
Message-ID:  <20021008215637.GF83241@hades.hell.gr>
In-Reply-To: <200210081551.51838.george@vagner.com>
References:  <200210081551.51838.george@vagner.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-10-08 15:51, George Vagner <george@vagner.com> wrote:
> I am looking for a script that I can run a cron on that will
> update my sources and ports, build world, kernel and install everything
> without touching my network settings so i can get back in later.

I have a script in my crontab that does the following:

    * Create a lockfile to make sure that cron doesn't spawn the same
      script twice.
    * Check that a cvsup server is available.
    * Update /home/ncvs (a local CVS mirror).

Find it at http://www.freebsd.org/~keramida/files/cvs-update

You could probably tweak this to suit your needs, and then run a
buildworld/buildkernel just before exiting.  I don't recommend adding
the proper shell commands to also installworld/installkernel
automagically.  This is asking for trouble, as someone else has
already posted.  The safest thing to do is probably to attempt an
installworld in a "scratch area", like /usr/testworld and manually do
a real installworld only if it succeeds.

You could also hack something around the "make release" target, if you
have enough disk space.  More information on the release building
process can be found at the following articles:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng-packages/

Giorgos.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021008215637.GF83241>