On Fri, 2014-03-28 at 12:42 +0200, Siarhei Siamashka wrote: > https://github.com/ssvb/lima-memtester
I needed the following to get it to build on my Debian rootfs. (and it turns out I can't run it anyway since I'm running a mainline kernel and haven't figured out mali.ko yet, for another time I think) ---------8<--------------- >From 72624b5d665e576057a3a869117014ae6a998578 Mon Sep 17 00:00:00 2001 From: Ian Campbell <i...@hellion.org.uk> Date: Sun, 30 Mar 2014 13:09:55 +0100 Subject: [PATCH] Remove bashisms from scripts [ "a" == "b" ] is a bashism, the portable alternative is [ "a" = "b" ]. Fixes the following issue on Debian where /bin/sh == dash: # ./build-lima-memtester-static-binary.sh ./build-lima-memtester-static-binary.sh: 3: [: x: unexpected operator ./build-lima-memtester-static-binary.sh: 11: ./build-lima-memtester-static-binary.sh: -DHAVE_NO_LIBMALI_BLOB: not found The alternative would be to explicitly use #!/bin/bash in the script but since the fix is trivial we might as well make it. Signed-off-by: Ian Campbell <i...@hellion.org.uk> --- build-lima-memtester-static-binary.sh | 2 +- build-textured-cube-static-binary.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-lima-memtester-static-binary.sh b/build-lima-memtester-static-binary.sh index e84e51b..d253cbb 100755 --- a/build-lima-memtester-static-binary.sh +++ b/build-lima-memtester-static-binary.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ x$CC == "x" ] +if [ x$CC = "x" ] then echo Note: using 'gcc' as a compiler. But it is possible to do something echo like \'export CC=foobar\' to override this. diff --git a/build-textured-cube-static-binary.sh b/build-textured-cube-static-binary.sh index 61f3e95..cc9f5d0 100755 --- a/build-textured-cube-static-binary.sh +++ b/build-textured-cube-static-binary.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ x$CC == "x" ] +if [ x$CC = "x" ] then echo Note: using 'gcc' as a compiler. But it is possible to do something echo like \'export CC=foobar\' to override this. -- 1.9.0 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.