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 -
Eric Siegerman wrote:
>
> On Tue, Jul 30, 2002 at 07:46:18AM -0700, Bruce Korb wrote:
> > [...] you still
> > need to have both [suffix and compressor-program name] be
> > specifiable so you are not boxed into
> > cutting a new release in order to support a combination
> > you didn't plan for.
>
On Tue, Jul 30, 2002 at 07:46:18AM -0700, Bruce Korb wrote:
> [...] you still
> need to have both [suffix and compressor-program name] be
> specifiable so you are not boxed into
> cutting a new release in order to support a combination
> you didn't plan for.
> >
> > for f in $DIST_FORMATS; do
>
> Sorry. Here is a possible answer about *how*.
>
> build distdir
> for f in $DIST_FORMATS; do
> case $f in
> gz)...
> bzip2) ...
> zip) ...
> ...
> esac
> done
> erase distdir
"gz" is a suffix, "bzip2" is the name of the program that
does the comp