diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-03-08 11:06:25 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-03-09 05:29:08 +0100 |
commit | 8ebd11eab999654873010e706b95e5fe5855ea64 (patch) | |
tree | 6f72a8f4ccf68cd7c1128ad1ab490031556f2b0c /Makefile.inc | |
parent | 0a50084e4d7535c5eb86dc3bf18c357eec4aa69a (diff) | |
download | coreboot-8ebd11eab999654873010e706b95e5fe5855ea64.tar.xz |
Fix lint-stable checkin hooks on MacOS X
- wc adds a number of leading spaces which broke cut
- sed can't replace spaces with new lines, so use tr for that.
- make sure directories are created if they're not there.
Change-Id: Ia0db059683abe3d97b0ab6feaece660a1f4e5079
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/774
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index e495f4587e..d36d15f458 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -225,7 +225,7 @@ lint lint-stable: grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \ echo ========; \ $$script > $$LINTLOG; \ - if [ `wc -l $$LINTLOG | cut -d' ' -f1` -eq 0 ]; then \ + if [ `echo $$( wc -l $$LINTLOG ) | cut -d' ' -f1` -eq 0 ]; then \ printf "success\n\n"; \ else \ echo test failed: ; \ |