jhalfs tar-1.15

Dan Nicholson dbn.lists at gmail.com
Fri Mar 17 15:53:48 PST 2006


On 3/17/06, George Boudreau <georgeb at linuxfromscratch.org> 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



More information about the alfs-discuss mailing list