[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decompress any compressed type
From: |
David Bateman |
Subject: |
Re: decompress any compressed type |
Date: |
Tue, 17 Oct 2006 09:50:19 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Bill Denney wrote:
> There have been several requests recently to have the package manager
> handle arbitrary compressed types. While I've not implemented all of
> the features required for this in the associated functions, here is
> decompress.m that takes the same arguments as any of the other
> decompression routines, but it will just choose the right one based on
> file extension.
>
> Eventually, we may want to move all the decompression code to within
> this function and have the others just call it (so that everything
> correctly does unwind_protect, changing directories, etc. without
> having essentially duplicated code). John, if you'd like that, I can
> probably work on it tomorrow.
>
> I chose the name decompress instead of uncompress because uncompress
> is the unix command that specifically expands .Z files.
>
> Bill
>
> scripts/ChangeLog:
>
> 2006-10-17 Bill Denney <address@hidden>
> * miscellaneous/decompress.m: new function, decompress any file
> based on its extension
Bill,
This is a good idea. However, rather than throwing an error if the
extension is not recognized, can you set "files = file" and return.....
Regards
David
--
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