Hi! I try to achieve a quick and dirty txz2lzm script!
#!/bin/bash
#
#Quick and dirty txz2lzm script
#
#Decompress .txz to .tar:
for f in *.txz; do xz -d $f; done
#Untar .tar to directories:
for f in *.tar; do d=`basename $f .tar`; mkdir $d; (cd $d && tar xf ../$f); done
#Delete .tar sources:
for f in *.tar; do rm -rfv $f; done
#Recompress directories to .lzm:
#Delete directories:
but finally, how to dir2lzm resulting directories to their respective .lzm files, and delete them?
burninbush thanx to you my friend! But that's not help me! Lol! But you try to help me and i wish to thanx for that and your previous help on the forum!
txz is the new slackware replacement tgz package format! A tar file compressed with the new XZ Utils compressor (lzma2) from The Tukaani Project!
I think you need to grab the latest pkgtools and xz tgz's from the slackware ftp, but then after that, you can continue to use the tgz2lzm script on txz's just as you always have on tgz's.
for f in *
do
if [ "-d" "$f" ]; then
echo "working"
dir2lzm $f $f.lzm > /dev/null 2>&1
rm -r $f
else
echo "$f is not a directory - skipping"
fi
done
echo "all jobs done"
Em, you don't need this. If you're going to use txz packages, you will also need all base packages updated, and that means pkgtools, too. That gives txz support to tgz2lzm.
Sorry, but it's pointless. Nobody's going to use txz packages in Slackware 12.2-based distribution, it's just stupid (it may cause errors).
the new slackware package are txz if you wont convert they,you need a script like em script, tgz is old format if you have kde 4 the package are only txz.
If you want to keep an eye, just install the new pkgtools (they come in tgz) and explore them.
beny, I know, but KDE 4 packages may not work on Slax one way or another because they are compiled with newer dependency packages.