Subject: Re: Is it acceptable to install by ${TAR}?
To: Alan Barrett <apb@cequrux.com>
From: Rui-Xiang Guo <rxg@myrealbox.com>
List: tech-pkg
Date: 01/03/2006 00:29:14
On Mon, Jan 02, 2006 at 05:48:26PM +0200, Alan Barrett wrote:
> On Mon, 02 Jan 2006, Rui-Xiang Guo wrote:
> > Hmm, I need the --exclude function, how to implement below by ${PAX}?
> > ${TAR} --exclude src -cf - . |  ${TAR} -xf - -C ${PREFIX}/share/rox/ROX-Filer
> 
> Using the "-s" option to rewrite a file name to the empty string
> causes pax to exclude the file.  So try:
> 
> ${PAX} -rw -s ',^\./src$,,' -s ',^\./src/.*,,' . ${PREFIX}/share/rox/ROX-Filer

Yes, It works well. I'll turn back to use ${PAX}. :)
Thanks you!