[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] tar files



Douglas G Mckendrick <Rhinecourt [at] btopenworld.com> writes:

> Is there a command I can use that will open, make and install a batch of tar 
> files.  Or is it best to do each individually?

probably you'd want to write a small shellscript to do it, but you'd
need to make assumptions about the build/install process.  something
like:

for i in *.tar
do
    tar xf $i
    pushd `basename $i .tar`
    ./configure
    make
    make install
    popd
done

would do most GNU tools, but I'd not really want to try it, if
anything went wrong, god only knows what'd happen, and it's no big
deal to do them individually (usually :)

-- 
Eric E. Moore

Attachment: pgp00007.pgp
Description: PGP signature