[Changeset] new bzip2 function

David Bateman David.Bateman at motorola.com
Thu Nov 27 03:43:28 CST 2008


Thorsten Meyer wrote:
> 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
>   
As John seems to have approve this way of written this function I 
applied it.

Thanks
D.

-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



More information about the Octave-maintainers mailing list