Date: Thu, 26 Jun 2003 08:37:39 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Dwayne MacKinnon <Dwayne.MacKinnon@xwave.com> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: pkg_create broken? Message-ID: <Pine.BSF.4.21.0306260836020.2537-100000@InterJet.elischer.org> In-Reply-To: <3EFB0B50.2090603@xwave.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 26 Jun 2003, Dwayne MacKinnon wrote: > Julian Elischer wrote: > > Alternatively, the man page hints that > > a 'srcdir' would stop a following 'cwd' from having effect in the create > > phase. > > Just wanted to mention that order is extremely important with package > creation. If you have @cwd /foo/bar; @srcdir /bar/foo your files will be > picked up from /bar/foo. If you have @srcdir /bar/foo; @cwd /foo/bar > your files will be picked up from /foo/bar. @cwd changes the directory > pointer for both creation and extraction, and so if you have @cwd AFTER > @srcdir the @srcdir command effectively gets over-written. yes but if you have a @cwd followed by an @srcdir then tar gets told to chdir to both places and it quits with an error if the first one doesn't exist, even if it need not exist. > > An experiment using just @srcdir and @dstdir might be worthwhile... > > Cheers, > DMK > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0306260836020.2537-100000>