From owner-freebsd-questions Thu Jan 11 2:41:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from copernicus.tranquility.net (copernicus.tranquility.net [206.152.117.186]) by hub.freebsd.org (Postfix) with ESMTP id 4109C37B400 for ; Thu, 11 Jan 2001 02:41:39 -0800 (PST) Received: (from sid67@localhost) by copernicus.tranquility.net (8.11.1/8.11.1) id f0BAiZA24304; Thu, 11 Jan 2001 04:44:35 -0600 (CST) (envelope-from sid67) Date: Thu, 11 Jan 2001 04:44:35 -0600 From: Ben Weaver To: "Justin W. Pauler" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: keeping up with latest sources Message-ID: <20010111044435.B4075@tranquility.net> References: <01011021314700.00227@wks01.drnet.fais.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01011021314700.00227@wks01.drnet.fais.net>; from jwpauler@jwpages.com on Wed, Jan 10, 2001 at 09:31:47PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You could just call somthing like this from a cron job: CVSUP=/usr/local/bin/cvsup CVSUP_ARGS="-g -L 2" SUPFILE=/usr/sup/src-supfile MAKE=/usr/bin/make MAKE_OPTIONS="" INSTALL_OPTIONS="" WORLD_MAKEFILE=/usr/src/Makefile LOGFILE=/path/to/logfile ALERT=jwpauler@jwpages.com if ! $CVSUP $CVSUP_ARGS $SUPFILE > $LOGFILE ; then echo "cvsup failed... see $LOGFILE" | mail -s "Build Failed" $ALERT exit 1 fi if ! $MAKE -f $WORLD_MAKEFILE $MAKE_OPTIONS buildworld >> $LOGFILE ; then echo "make buildworld failed... see $LOGFILE" | mail -s "Build Failed" $ALERT exit 1 fi if ! $MAKE -f $MAKEFILE $INSTALL_OPTIONS install world >> $LOGFILE ; then echo "make install world failed... see $LOGFILE" | mail -s "Build Failed" $ALERT exit 1 fi which should cvsup then build world and install it. Add in a few more if blocks for the kernel build and you should be good to go. I don't know why you'd want to do an unattended merge... -Ben On Wed, Jan 10, 2001 at 09:31:47PM -0600, Justin W. Pauler wrote: > I like to follow the latest changes to the stable cvsup and was wondering if > anyone had a script that would do the following from crontab at a certain > time: > > 1. download the latest sources > 2. run a make world > 3. compile the kernel > 4. install the kernel > 5. automatic merging > 6. reboot > > I would appreciate any help anyone could provide. > > --jwp > > -- > Justin W. Pauler > FlexiShell Internet Services > E-Mail: jwpauler@jwpages.com > WWW: http://www.jwpages.com > IRC: drnet@#EggDrop, Undernet IRC Network > > ----------------------------------------------------------------------- > Play Rogue, visit exotic locations, meet strange creatures and kill > them. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message