On 3/17/06, George Boudreau <[EMAIL PROTECTED]> wrote:
> >
> > That remember me that we need same way to not bomb when the same package is
> > found in both formats into the sources dir.
>
>    A possible work around .. 'assuming' only xxx.tar.gz or xxx.tar.bz2
>    for f in ${1}.tar.*; do
>      tar -xvf $f > /tmp/unpacked
>      break # do once and leave
>    done

Possibly,

TARFILE=`ls -t ${1}.tar.* | head -n1`
tar -xvf $TARFILE

Gets the most recent one.  Still hacky.  That comes from Ryan Oliver's scripts.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to