From owner-freebsd-questions Fri Jun 21 14:56:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from server1.manmail.norlight.net (server1.manmail.norlight.net [207.170.4.2]) by hub.freebsd.org (Postfix) with SMTP id 9E0FD37B40C for ; Fri, 21 Jun 2002 14:56:32 -0700 (PDT) Received: (qmail 6664 invoked from network); 21 Jun 2002 21:56:31 -0000 Received: from icarus.norlight.net (HELO appseng3) (207.170.1.149) by server1.manmail.norlight.net with SMTP; 21 Jun 2002 21:56:31 -0000 Message-ID: <000501c2196e$998f7d90$9501aacf@appseng3> From: "Hyunseog Ryu" To: , "Roman Neuhauser" Cc: "FBSDQ" References: Subject: Re: Help writing simple script Date: Fri, 21 Jun 2002 16:57:13 -0500 Organization: Norlight Telecommunications 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Try this! This might be dirty but it will work. Hyun #! /bin/sh # This script is used to just download a single port # The -i flag tells cvsup to only download this port cvsupfile=/tmp/cvsupfile.$$ echo > $cvsupfile # create CVSup tree off /usr directory echo "*default base=/usr " >> $cvsupfile # create CVSup tree off /usr directory echo "*default prefix=/usr" >> $cvsupfile echo "*default release=cvs" >> $cvsupfile # FeeBSD-STABLE for 4.x echo "*default tag=RELENG_4" >> $cvsupfile # no compression, for DSL or t1 lines echo "*default delete use-rel-suffix" >> $cvsupfile # from Virginia echo "*default host=cvsup11.FreeBSD.org" >> $cvsupfile # set tag value to nulls to get most current version echo "*default tag=." >> $cvsupfile # Software related to the World Wide Web. echo "ports-www" >> $cvsupfile cvsup -g -L 2 -i ports/www/apach13-fp $cvsupfile unlink $cvsupfile ----- Original Message ----- From: "Joe & Fhe Barbish" To: "Roman Neuhauser" Cc: "FBSDQ" Sent: Friday, June 21, 2002 4:43 PM Subject: RE: Help writing simple script > Thanks for the additional code but still can not get the $cvsupfile > loaded with the in script data lines. > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Roman Neuhauser > Sent: Friday, June 21, 2002 4:16 PM > To: Joe & Fhe Barbish > Cc: FBSDQ > Subject: Re: Help writing simple script > > > 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 > > > 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