1 |
On Sunday 27 January 2008 18:29:56 Enrico Weigelt wrote: |
2 |
> Why not an universal wrapper script ? |
3 |
> |
4 |
> maybe something like: |
5 |
> |
6 |
> magic-uncompress [-t <format>] [-c] [-o <output>] <input> |
7 |
> |
8 |
> This script could try to find out the input format automatically |
9 |
> (the optional -t parameter allows to explicitly specifiy the format) |
10 |
> |
11 |
> Once we have this script, ebuilds could be rewritten step by step |
12 |
> and no one (else than magic-uncompress) has to care about the actual |
13 |
> commands behind. |
14 |
> |
15 |
> Some could be done w/ tar and zip, etc. |
16 |
|
17 |
You've just reinvented unpack(). It's been a part of portage for ages and is |
18 |
used in just about every ebuild in the tree... |
19 |
|
20 |
-- |
21 |
Bo Andresen |