From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 26 08:37:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD37B37B401 for ; Thu, 26 Jun 2003 08:37:44 -0700 (PDT) Received: from sccrmhc13.attbi.com (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4631843FA3 for ; Thu, 26 Jun 2003 08:37:43 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (sccrmhc13) with ESMTP id <20030626153742016000np4je>; Thu, 26 Jun 2003 15:37:42 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id IAA11216; Thu, 26 Jun 2003 08:37:40 -0700 (PDT) Date: Thu, 26 Jun 2003 08:37:39 -0700 (PDT) From: Julian Elischer To: Dwayne MacKinnon In-Reply-To: <3EFB0B50.2090603@xwave.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: pkg_create broken? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 15:37:45 -0000 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 > >