wok-current rev 20763

syslinux/iso2exe/init: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 13 11:04:40 2019 +0100 (2019-02-13)
parents 378b0ba41272
children 48ae45dab042
files syslinux/stuff/iso2exe/Makefile syslinux/stuff/iso2exe/init
line diff
     1.1 --- a/syslinux/stuff/iso2exe/Makefile	Wed Feb 13 10:43:31 2019 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/Makefile	Wed Feb 13 11:04:40 2019 +0100
     1.3 @@ -19,7 +19,6 @@
     1.4  	./$@ --build boot.com bootiso.bin init win32.exe
     1.5  
     1.6  init.built: bootloader.bin ifmem.bin init
     1.7 -	sed -i 's|^[ \t]*||;s|[ \t]*###.*||;s|^$||' init
     1.8  	./init --build
     1.9  	touch init.built
    1.10  
     2.1 --- a/syslinux/stuff/iso2exe/init	Wed Feb 13 10:43:31 2019 +0100
     2.2 +++ b/syslinux/stuff/iso2exe/init	Wed Feb 13 11:04:40 2019 +0100
     2.3 @@ -759,11 +759,12 @@
     2.4  }
     2.5  
     2.6  if [ "$1" == "--build" ]; then	#install-begin
     2.7 -	uuencode -m - < ifmem.bin | sed -e '/^ifmemcode$/r/dev/stdin' \
     2.8 -	  -e '/^ifmemcode$/d' -i $0
     2.9 +	cp $0 $0.tmp
    2.10 +	uuencode -m - < ifmem.bin | sed -e 's|^[ \t]*||;s|[ \t]*###.*||' \
    2.11 +	  -e '/^ifmemcode$/r/dev/stdin' -e '/^ifmemcode$/d' -i $0.tmp
    2.12  	uuencode -m - < bootloader.bin | sed -e '/^bootloader$/r/dev/stdin' \
    2.13 -	  -e '/^bootloader$/d' -e '/install-begin$/,/install-end$/d' -i $0
    2.14 -	exit
    2.15 +	  -e '/^bootloader$/d' -e '/install-begin$/,/install-end$/d' -i $0.rmp
    2.16 +	mv -f $0.tmp $0; exit
    2.17  fi	#install-end
    2.18  parse_isolinux()
    2.19  {