Ed Howland wrote:
> Hi,
> 
> I have a need to have Rake::PackageTask implement the -h option on tar
> +gz and bz2. This would allow for tar to include any linked
> files/folders. The workaround is to cp -r the entire contents of the
> linked dir. This is klunky at best.
> 
> Any chance of this? Any other workarounds?

Two issues:

(1) Rake actually makes a copy of the directory and tars that up.  That 
way the tar file will not accidently pick up non-package files that 
might be laying around.  It will use hard links on Unix do keep the disk 
space usage down (Windows, however, uses a full copy).  Any symbolic 
links would have to be added to that copied directory structure for the 
package task to pick it up.

(2) I'm considering adding support for the pure-ruby tar library to 
build the tarfile.  This would allow the package to be built on windows 
machines that don't a tar program.  But I'm not sure if the pure ruby 
tar library supports a -h option.  That would have to be verfified.

I'm open to patches for supporting the -h option given the above 
constraints.

--
-- Jim Weirich

-- 
Posted via http://www.ruby-forum.com/.