Portability improvement
authorPatrick Georgi <patrick@georgi-clan.de>
Fri, 9 Mar 2012 22:02:09 +0000 (23:02 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 10 Mar 2012 13:20:44 +0000 (14:20 +0100)
Makefile.inc uses $( ) syntax on the shell. That's isn't as universal
as one would like.

Change-Id: I9a8fd511eef7fefc1458d5bae2cd7ef5475b7392
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/777
Tested-by: build bot (Jenkins)
Reviewed-by: Bernhard Urban <lewurm@gmail.com>
Makefile.inc

index d36d15f458cf422f82ce07c10efd30f08bee8727..86a072ab49a630f387d8ac66340d9520107f8536 100644 (file)
@@ -225,7 +225,7 @@ lint lint-stable:
                grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
                echo ========; \
                $$script > $$LINTLOG; \
-               if [ `echo $$( wc -l $$LINTLOG ) | cut -d' ' -f1` -eq 0 ]; then \
+               if [ `cat $$LINTLOG | wc -l` -eq 0 ]; then \
                        printf "success\n\n"; \
                else \
                        echo test failed: ; \