Subject: Re: building 1.6 on -current: pax-as-tar problem?
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 01/14/2003 22:00:41
In article <Pine.NEB.4.51.0301141648190.27836@woffi.planix.com>,
Andreas Wrede <andreas@planix.com> wrote:
>On Tue, 14 Jan 2003, Greg A. Woods wrote:
>
>> [ On Tuesday, January 14, 2003 at 09:10:41 (-0500), Andreas Wrede wrote: ]
>> > Subject: building 1.6 on -current: pax-as-tar problem?
>> >
>> > cd: can't cd to
>/m5/netbsd-1.6/src/tools/toolchain/obj.i386/build/gcc/include
>>
>> I don't know about that part....
>>
>> > tar: Sorry, unable to determine archive format.
>>
>> But for this I bet the second tar's option flags need a leading '-':
>>
>> tar -xpBf -
>
>No such luck:
>
>(cd `pwd`/include ; tar -cf - .; exit 0) | (cd
>/m5/netbsd-1.6/tools/lib/gcc-lib/i386--netbsdelf/2.95.3/include; tar
>-xpBf - )
>cd: can't cd to /m5/netbsd-1.6/obj.i386/tools/toolchain.i386/build/gcc/include
>tar: Sorry, unable to determine archive format.
Whoever writes scripts like this deserves what she/he gets; you never use
`;' between commands that can fail; you should be using `&&'
cd /; cd notexists; rm -fr .
christos