From owner-freebsd-questions Fri Jun 21 12:39:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.a1poweruser.com (oh-chardon6a-62.clvhoh.adelphia.net [68.65.175.62]) by hub.freebsd.org (Postfix) with ESMTP id 854CD37B401 for ; Fri, 21 Jun 2002 12:39:32 -0700 (PDT) Received: from barbish (unknown [10.0.10.6]) by smtp.a1poweruser.com (Postfix) with SMTP id 3A06BB2 for ; Fri, 21 Jun 2002 15:42:25 -0400 (EDT) Reply-To: From: "Joe & Fhe Barbish" To: "FBSDQ" Subject: Help writing simple script Date: Fri, 21 Jun 2002 15:39:30 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 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 cvsup -g -L 2 -i ports/www/apach13-fp $cvsupfile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message