OSDN Git Service

Fix "make modules" script bug under Mac OS X.
authorEvan JIANG <firstfan@gmail.com>
Fri, 23 Jan 2009 16:11:30 +0000 (00:11 +0800)
committerJean-Baptiste Queru <jbq@google.com>
Wed, 28 Apr 2010 23:13:28 +0000 (16:13 -0700)
For Mac OS uses BSD sed, it doesn't support "\n". Then, "make modules"
command cannot work correctly under Mac OS. Using tr command to replace
sed command, it has the same behavior under both Mac OS and Linux.

Change-Id: I29e044cc66bf24f6459cbb33164fd9f55f772e3c

core/main.mk

index 5cb160b..fdb1163 100644 (file)
@@ -737,7 +737,7 @@ clobber:
 modules:
        @echo "Available sub-modules:"
        @echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \
-             sed -e 's/  */\n/g' | sort -u | $(COLUMN)
+             tr -s ' ' '\n' | sort -u | $(COLUMN)
 
 .PHONY: showcommands
 showcommands: