[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Option Consistency
From: |
Eric Siegerman |
Subject: |
Re: Option Consistency |
Date: |
Tue, 30 Jul 2002 13:30:29 -0400 |
User-agent: |
Mutt/1.2.5i |
On Tue, Jul 30, 2002 at 10:22:42AM -0700, Bruce Korb wrote:
> Yep. Actually, the loop should simplify:
>
> > > > for f in $DIST_FORMATS; do
> > > > eval suffix=\$${f}_SUFFIX
> > > > [ -n "${suffix}" ] && suffix=.${suffix}
> > + eval program=\$${f}_COMPRESSOR
> > > > tar cf - ${distdir} | ${program} > ${distdir}.tar${suffix}
> > > > done
>
> unless someone actually does an "rpm" or "pkgadd" format :-)
Good enough reason to leave it as a case statement. If you
"simplify" it, someone who wants to add a packager with a funny
interface will have to write a glue script, and many (most? all?)
packages will have to distribute same. Not exactly a
simplification...
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. address@hidden
| | /
Anyone who swims with the current will reach the big music steamship;
whoever swims against the current will perhaps reach the source.
- Paul Schneider-Esleben