wok-6.x rev 18232

linld: add tobzimage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 23 12:19:27 2015 +0200 (2015-07-23)
parents c914a1094228
children 66bb11544abe
files linld/stuff/tobzimage
line diff
     1.1 --- a/linld/stuff/tobzimage	Thu Jul 23 12:14:30 2015 +0200
     1.2 +++ b/linld/stuff/tobzimage	Thu Jul 23 12:19:27 2015 +0200
     1.3 @@ -1,8 +1,9 @@
     1.4  #!/bin/sh
     1.5  
     1.6  if [ "$1" == "--build" ]; then	#install-begin
     1.7 -	uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \
     1.8 -	  -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0
     1.9 +	cat tobzimage.bin | gzip -9 | uuencode -m  | sed \
    1.10 +	  -e '/^tobzimage$/r/dev/stdin' -e '/^tobzimage$/d' \
    1.11 +	  -e '/install-begin$/,/install-end$/d' -i $0
    1.12  	exit
    1.13  fi	#install-end
    1.14  [ -s "$1" -a "$2" ] || {