wok diff memtest/receipt @ rev 25504

Update some web_site / wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 05 09:28:51 2023 +0000 (17 months ago)
parents 32f22d8fdc89
children c9972dbaa043
line diff
     1.1 --- a/memtest/receipt	Thu Nov 17 12:13:24 2022 +0000
     1.2 +++ b/memtest/receipt	Sun Feb 05 09:28:51 2023 +0000
     1.3 @@ -30,28 +30,36 @@
     1.4  {
     1.5  	file=$1
     1.6  	shift
     1.7 -	for i in lzma lz4 lzsa1 lzsa2 ; do
     1.8 +	for i in lzma lz4x2 lzsa1x2 lzsa2x2 ; do
     1.9  		cp $stuff/*.S $stuff/pack .
    1.10  		sed "s/VERSION/$VERSION/;s|lzma1=|&nice=${1:-64},|" -i pack
    1.11  		while [ -n "$2" ]; do
    1.12  			sed "s|^#define PROP_$2 .*|#define PROP_$2 $3|" -i unlzma.S
    1.13  			shift 2
    1.14  		done
    1.15 -		sed -i "s|uncompress|un$i|" unpack.S
    1.16 +		sed -i "s|uncompress|un${i%x2}|" unpack.S
    1.17  		asm bootloader
    1.18  		asm unpack
    1.19  		cp pack pack.bak
    1.20  		./pack --build bootloader.bin unpack.bin
    1.21 -		PACKER=$i ./pack $file $file.$i
    1.22 -		if [ $(stat -c %s $file.$i) -ge $((0x101F0)) ]; then
    1.23 -			rm $file.$i
    1.24 +		PACKER=${i%x2} ./pack $file $file.${i%x2}
    1.25 +		if [ $(stat -c %s $file.${i%x2}) -ge $((0x101F0)) ]; then
    1.26 +			rm $file.${i%x2}
    1.27  			cp pack.bak pack
    1.28 -			sed -e "s|^#define FLAT16.*// lzma case|#define FLAT16 0 // $i|" -i unpack.S
    1.29 +			sed -e "s|^#define FLAT16.*// lzma case|#define FLAT16			0 // ${i%x2}|" -i unpack.S
    1.30  			asm unpack
    1.31  			./pack --build bootloader.bin unpack.bin
    1.32 -			PACKER=$i ./pack $file $file.$i
    1.33 +			PACKER=${i%x2} ./pack $file $file.${i%x2}
    1.34  		fi
    1.35 -		mv unpack.lst unpack.lst.$i
    1.36 +		mv unpack.lst unpack.lst.${i%x2}
    1.37 +		if [ "${i#*x}" = "2" ]; then
    1.38 +			cp pack.bak pack
    1.39 +			sed -e "s|^#define DOUBLE_PACKED|#define DOUBLE_PACKED	1 // $i|" -i unpack.S
    1.40 +			asm unpack
    1.41 +			./pack --build bootloader.bin unpack.bin
    1.42 +			PACKER=${i%x2} ./pack $file $file.$i
    1.43 +			mv unpack.lst unpack.lst.$i
    1.44 +		fi
    1.45  	done
    1.46  }
    1.47