wok diff memtest/stuff/pack @ rev 25096

created recipe for wordgrinder
author Hans-G?nter Theisgen
date Sat Jun 18 15:13:12 2022 +0100 (2022-06-18)
parents 9ca81337dc6e
children 608a017317a8
line diff
     1.1 --- a/memtest/stuff/pack	Sun May 07 21:49:40 2017 +0200
     1.2 +++ b/memtest/stuff/pack	Sat Jun 18 15:13:12 2022 +0100
     1.3 @@ -38,9 +38,14 @@
     1.4  	done | xargs echo -en | dd conv=notrunc bs=1 of=$2 seek=$3
     1.5  }
     1.6  
     1.7 +bits()
     1.8 +{
     1.9 +	sed "/define PROP_$1/!d;s|.*PROP_...||" unlzma.S
    1.10 +}
    1.11 +
    1.12  compress()
    1.13  {
    1.14 -	xz -z -e --format=lzma --lzma1=mf=bt2 --stdout | dd bs=1 skip=13
    1.15 +	xz -z -e --format=raw --lzma1=lc=$(bits LC),lp=$(bits LP),pb=$(bits PB) --stdout 
    1.16  }
    1.17  
    1.18  main()