[Changeset] new bzip2 function

Thorsten Meyer thorsten.meyier at gmx.de
Sun Nov 2 13:25:41 CST 2008


Hi,

John W. Eaton wrote:
> Probably you don't need that level of complexity.  I'm thinking of
> something like
> 
>   function entries = gzip (files, outdir)
>     if (nargin == 1 || nargin == 2)
>       __xzip__ (files, outdir, "gzip", ".gz", "gzip -r %s");
>     else
>       print_usage ();
>     endif
>   endfunction
> 
> and
> 
>   function entries = bzip2 (files, outdir)
>     if (nargin == 1 || nargin == 2)
>       __xzip__ (files, outdir, "bzip2", ".bz2", "bzip2 %s");
>     else
>       print_usage ();
>     endif
>   endfunction
> 
> Given this, converting the current gzip function to __xzip__ should be
> fairly easy, I think.
Attached, you will find a new changeset, that implements the above.

regards

Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzip2.patch
Type: text/x-patch
Size: 11516 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20081102/03a13070/attachment.bin 


More information about the Octave-maintainers mailing list