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. [EMAIL PROTECTED]
| | /
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