wok-6.x rev 19649

syslinux/iso2exe: fix gzsize
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 22 14:07:37 2017 +0100 (2017-01-22)
parents 34cda0790cda
children cba7035d0809
files syslinux/stuff/iso2exe/iso2exe.sh
line diff
     1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Sun Jan 22 05:59:26 2017 +0200
     1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Sun Jan 22 14:07:37 2017 +0100
     1.3 @@ -144,12 +144,12 @@
     1.4  gzsize()
     1.5  {
     1.6  	echo $(($(hexdump -C | awk ' {
     1.7 -		for (i = 2; i < 18; i++) if ($i != "00") break;
     1.8 -		if (i == 18) {
     1.9 -			for (i = 17; i > 1; i--) if ($i != "00") break;
    1.10 -			print "0x" $1 " + 7 - " (16 - i) 
    1.11 +		for (i = 17; i > 1; i--) if ($i != "00") break;
    1.12 +		if (i == 1) {
    1.13 +			print "0x" $1 " + 1 + 1 - " n
    1.14  			exit
    1.15  		}
    1.16 +		n = 17 - i
    1.17  	}')))
    1.18  }
    1.19