.bz -> .bz2
This commit is contained in:
parent
d9aad59630
commit
f28a4d0e9c
3 changed files with 7 additions and 7 deletions
|
@ -33,7 +33,7 @@ esac
|
|||
packagestart=$srcdir/now
|
||||
findlist=$srcdir/findlist
|
||||
tar=$srcdir/"`basename ${dir}`".tar
|
||||
tarbz=$tar.bz
|
||||
tarbz=$tar.bz2
|
||||
|
||||
mkdir $pdir 2>/dev/null || true
|
||||
binsizes big
|
||||
|
|
|
@ -25,14 +25,14 @@ then pack=${cddrive}p2
|
|||
if mount -r $pack $MP
|
||||
then
|
||||
cd $CDPACK
|
||||
for package in `ls *.tar.bz`
|
||||
for package in `ls *.tar.bz2`
|
||||
do grep $package List
|
||||
echo -n "Install $package (y/N) ? "
|
||||
read y
|
||||
if [ "$y" = y -o "$y" = Y ]
|
||||
then echo "Extracting $CDPACK/$package .."
|
||||
cat $package | packit -
|
||||
srcname="`echo $package | sed 's/.tar.bz/-src.tar.bz/'`"
|
||||
srcname="`echo $package | sed 's/.tar.bz2/-src.tar.bz2/'`"
|
||||
srcarc="$CDSRC/$srcname"
|
||||
if [ -f "$srcarc" ]
|
||||
then echo -n "Install its source (y/N) ? "
|
||||
|
@ -71,8 +71,8 @@ then if [ -f $LISTFILE ]
|
|||
read packno
|
||||
if [ -n "$packno" ]
|
||||
then file="`grep "^$packno|" $LISTFILE | awk -F'|' '{ print $2 }'`"
|
||||
url=$file.tar.bz
|
||||
srcfile=$file-src.tar.bz
|
||||
url=$file.tar.bz2
|
||||
srcfile=$file-src.tar.bz2
|
||||
if [ -n "$url" ]
|
||||
then echo -n "Try to get source too? (y/N) "
|
||||
read src
|
||||
|
|
|
@ -25,7 +25,7 @@ k="$2"
|
|||
$RM "$1.$k" 2>/dev/null || exit 1
|
||||
while [ "$k" -ge 2 ]
|
||||
do prev="`expr $k - 1`"
|
||||
$MV $1.$prev.bz $1.$k.bz 2>/dev/null
|
||||
$MV $1.$prev.bz2 $1.$k.bz2 2>/dev/null
|
||||
k=$prev
|
||||
done
|
||||
$BZIP -c $1 >$1.1.bz && : >$1
|
||||
$BZIP -c $1 >$1.1.bz2 && : >$1
|
||||
|
|
Loading…
Reference in a new issue