wok rev 18231

linld: add tobzimage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 23 12:14:30 2015 +0200 (2015-07-23)
parents 347588653a93
children 38b9b5003833
files linld/stuff/tobzimage
line diff
     1.1 --- a/linld/stuff/tobzimage	Thu Jul 23 10:47:46 2015 +0200
     1.2 +++ b/linld/stuff/tobzimage	Thu Jul 23 12:14:30 2015 +0200
     1.3 @@ -1,5 +1,10 @@
     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 +	exit
    1.10 +fi	#install-end
    1.11  [ -s "$1" -a "$2" ] || {
    1.12  	cat << EOT
    1.13  Usage: $0 zImage-to-read bzImage-to-create [version-string]
    1.14 @@ -63,9 +68,4 @@
    1.15  	ddq >> $1
    1.16  }
    1.17  
    1.18 -if [ "$1" == "--build" ]; then	#install-begin
    1.19 -	uuencode -m - < tobzimage.bin | sed -e '/^tobzimage$/r/dev/stdin' \
    1.20 -	  -e '/^tobzimage$/d' -e '/install-begin$/,/install-end$/d' -i $0
    1.21 -	exit
    1.22 -fi	#install-end
    1.23  create_bzImage $2 "$3" < $1