lkml.org 
[lkml]   [1999]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: us.kernel.org mirroring inconsistency
<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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.338 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site