From owner-freebsd-current Sat May 16 13:24:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA00734 for freebsd-current-outgoing; Sat, 16 May 1998 13:24:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.westbend.net (ns1.westbend.net [207.217.224.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00728 for ; Sat, 16 May 1998 13:24:07 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [207.217.224.195]) by mail.westbend.net (8.8.8/8.8.8) with SMTP id PAA24490 for ; Sat, 16 May 1998 15:24:10 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <01d801bd8108$95991140$c3e0d9cf@admin.westbend.net> From: "Scot W. Hetzel" To: Subject: Re: Periodic file for CVSup Date: Sat, 16 May 1998 15:24:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: John Polstra >In article <013501bd79e6$f601e440$c3e0d9cf@admin.westbend.net>, >Scot W. Hetzel wrote: > >> To determine the SUP program, SUP flags, and SUP file, the script obtains >> these values from the make.conf file. >> >> Any suggestions for improvements. > >Just a comment -- as far as I know, there aren't any FreeBSD sup >servers any more. > The script was designed to use either program (sup or cvsup) to update the sources files depending on how make.conf is configured. So the script would display: [Daily/Weekly/Monthly/] [Sup/CVSup] Update: depending on where it was installed, how the SUP section is set up in the make.conf file, and use the appropriate program (sup or cvsup). If there are no sup servers, should I have the script print an error message and exit? i.e. Weekly Sup Update: Sup servers are no longer available. Change your make.conf to use cvsup instead. Scot NOTE: The script that was posted doesn't display "Daily, Weekly, or Monthly" when run by periodic. But will display them when run directly from those directories. I have fixed the problem with this script by adding the following code: 2a3,9 > PROG_DIR=`dirname $0` > > if [ "${PROG_DIR}" = "." ] ; > then > PROG_DIR=`pwd` > fi > 15c22 < case `basename \`pwd\`` in --- > case `basename ${PROG_DIR}` in 18a26 > *) PERIOD=`basename ${PROG_DIR}`;; 28a37 > echo "" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message