octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Changeset] new bzip2 function


From: David Bateman
Subject: Re: [Changeset] new bzip2 function
Date: Thu, 27 Nov 2008 10:43:28 +0100
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)

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                                address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]