From owner-freebsd-questions Fri Jun 21 13:12:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by hub.freebsd.org (Postfix) with SMTP id 5C0C737B405 for ; Fri, 21 Jun 2002 13:12:20 -0700 (PDT) Received: (qmail 3033 invoked from network); 21 Jun 2002 20:10:41 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 21 Jun 2002 20:10:41 -0000 Received: (from roman@localhost) by freepuppy.bellavista.cz (8.11.6/8.11.6) id g5LKG7W19266; Fri, 21 Jun 2002 22:16:07 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Fri, 21 Jun 2002 22:16:06 +0200 From: Roman Neuhauser To: Joe & Fhe Barbish Cc: FBSDQ Subject: Re: Help writing simple script Message-ID: <20020621201606.GY10684@freepuppy.bellavista.cz> Mail-Followup-To: Joe & Fhe Barbish , FBSDQ References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: "Joe & Fhe Barbish" > To: "FBSDQ" > Subject: Help writing simple script > Date: Fri, 21 Jun 2002 15:39:30 -0400 > > I'm trying to build a temp file inside this script and pass it to > the cvsup command as the /etc/scvsupfile. The function works when I > edit the /etc/cvsupfile separately. Some syntax thing I guess. > > #! /bin/sh > # This script is used to just download a single port > # The -i flag tells cvsup to only download this port > > cvsupfile=<< EOD > *default base=/usr # create CVSup tree off /usr > directory > *default prefix=/usr # create CVSup tree off /usr > directory > *default release=cvs > *default tag=RELENG_4 # FeeBSD-STABLE for 4.x > *default delete use-rel-suffix # no compression, for DSL or t1 lines > *default host=cvsup11.FreeBSD.org # Virginia > *default tag=. # set tag value to nulls to get most current > version > ports-www # Software related to the World Wide Web. > EOD TMPFILE=${TMPDIR-/tmp}/cvsup-`date +%Y%m%d%H%M%S` cat $cvsupfile > $TMPFILE trap "rm $TMPFILE; exit" 0 1 2 3 15 > cvsup -g -L 2 -i ports/www/apach13-fp $cvsupfile cvsup -g -L 2 -i ports/www/apach13-fp $TMPFILE would that help? -- FreeBSD 4.5-STABLE 10:09PM up 18 days, 11:58, 13 users, load averages: 0.12, 0.07, 0.02 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message