tiny-slitaz rev 23

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:33:34 2019 +0100 (2019-02-26)
parents 3caae5e3e0f7
children 7175c3b32b23
files helper
line diff
     1.1 --- a/helper	Sat Sep 30 10:59:00 2017 +0200
     1.2 +++ b/helper	Tue Feb 26 08:33:34 2019 +0100
     1.3 @@ -3,7 +3,7 @@
     1.4  
     1.5  init()
     1.6  {
     1.7 -	[ "$(ls -t pkgs | sed q)" == "files.list.lzma" ] ||
     1.8 +	[ "$(ls -t pkgs | sed q)" = "files.list.lzma" ] ||
     1.9  	for i in pkgs/*/receipt ; do
    1.10  		. $i
    1.11  		sed "s/^/$PACKAGE: /" $(dirname $i)/files.list
    1.12 @@ -394,7 +394,7 @@
    1.13  
    1.14  
    1.15  
    1.16 -if [ "x$1" == "x--mkrootfs" ]; then
    1.17 +if [ "x$1" = "x--mkrootfs" ]; then
    1.18  	tmp=$2
    1.19  	cd $tmp/fs
    1.20  	if [ ! -d boot -a -s ../kernel ]; then # custom kernel
    1.21 @@ -405,7 +405,7 @@
    1.22  	find | grep -v ^./boot | cpio -o -H newc | gzip -9 > ../rootfs.gz
    1.23  	which advdef 2> /dev/null && advdef -z4 ../rootfs.gz
    1.24  fi
    1.25 -if [ "x$1" == "x--mkiso" ]; then
    1.26 +if [ "x$1" = "x--mkiso" ]; then
    1.27  	tmp=$2
    1.28  	mkdir -p $tmp/iso/boot/isolinux $tmp/iso/data
    1.29  	cat $tmp/fs/boot/System.map | gzip -9 > $tmp/iso/data/sysmap.gz
    1.30 @@ -438,13 +438,13 @@
    1.31          [ -x /usr/bin/iso2exe ] &&
    1.32          /usr/bin/iso2exe $tmp/slitaz.iso 2> /dev/null
    1.33  fi
    1.34 -if [ "x$1" == "x--mkexe" ]; then
    1.35 +if [ "x$1" = "x--mkexe" ]; then
    1.36  	tmp=$2
    1.37  	cd $tmp
    1.38  	cp fs/boot/bzImage slitaz.exe
    1.39  	sh fs/boot/bundle slitaz.exe rootfs.gz
    1.40  fi
    1.41 -if [ "x$1" == "x--mkimg" ]; then
    1.42 +if [ "x$1" = "x--mkimg" ]; then
    1.43  	tmp=$2
    1.44  	cd $tmp
    1.45  	cp fs/boot/bzImage slitaz.img
    1.46 @@ -470,13 +470,13 @@
    1.47  	[ $(stat -c %s slitaz.img) -lt 1474560 ] &&
    1.48  	dd of=slitaz.img bs=18k seek=80 count=0 2> /dev/null
    1.49  fi
    1.50 -if [ "x$1" == "x--mkcfg" ]; then
    1.51 +if [ "x$1" = "x--mkcfg" ]; then
    1.52  	tmp=$2
    1.53  	cd $tmp/fs
    1.54  	for i in $(sed 's#^/##' < ../config_files); do find $i; done | \
    1.55  		sort | uniq | cpio -o -H newc | gzip -9 > ../config_files.cpio.gz
    1.56  fi
    1.57 -if [ "x$1" == "x--chkdist" ]; then
    1.58 +if [ "x$1" = "x--chkdist" ]; then
    1.59  	if [ pkgs/busybox-*/fs.cpio.lzma -nt dist/rootfs.cpio ]; then
    1.60  		cat pkgs/busybox-*/fs.cpio.lzma | unlzma | ( cd dist ; cpio -idmu )
    1.61  		mv -f dist/fs/* dist/