Re: us.kernel.org mirroring inconsistency

Mircea Damian (dmircea@pop3.kappa.ro)
Mon, 4 Jan 1999 09:48:24 +0200


<cut>
> distributions. What would be nice is if tar supported bz2 directly so one
> could use "tar xvzf foo.tar.bz2".

As far as I know there is a patch for tar... but I'm using this small script:

#! /bin/sh

if [ $# -ge 2 ]; then
ARCHIVE=$2
if [ `echo $ARCHIVE | egrep '\.bz2$|\.bz$|\.tbz$' | wc -l` -gt 0 ]; then
ARG=$1
ARG=`echo $ARG | tr -d 'z'`
shift 1
/bin/tar $ARG $@ --use-compress-program bzip2
exit $?
fi
fi
/bin/tar $*
exit $?

-- 
Mircea Damian
Network Manager
dmircea@roedu.net, dmircea@lbi.ro, dmircea@kappa.ro
MD65-RIPE, MD2225, MD1-6BONE
Phone: +40-1-4115246

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/