Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2002 22:16:06 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>
Cc:        FBSDQ <questions@FreeBSD.ORG>
Subject:   Re: Help writing simple script
Message-ID:  <20020621201606.GY10684@freepuppy.bellavista.cz>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGMEHBCDAA.barbish@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGMEHBCDAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: "Joe & Fhe Barbish" <barbish@a1poweruser.com>
> To: "FBSDQ" <questions@FreeBSD.ORG>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020621201606.GY10684>