Date: Sat, 16 May 1998 15:24:09 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: <current@FreeBSD.ORG> Subject: Re: Periodic file for CVSup Message-ID: <01d801bd8108$95991140$c3e0d9cf@admin.westbend.net>
next in thread | raw e-mail | index | archive | help
From: John Polstra <jdp@polstra.com>
>In article <013501bd79e6$f601e440$c3e0d9cf@admin.westbend.net>,
>Scot W. Hetzel <hetzels@westbend.net> 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/<other dir>] [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01d801bd8108$95991140$c3e0d9cf>
