include/scan.mk: Add -a argument to the grep to treat all Makefiles as a text file.
authorFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:43:22 +0000 (17:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:43:22 +0000 (17:43 +0000)
commitd8b3b58fd350c019d6c180780a06e6d537923ad3
treeb8c11538daf15ae6af0123d3bcf1787f524750d9
parent04527ad0aa8bbebc26c434025cefd413f6e62add
include/scan.mk: Add -a argument to the grep to treat all Makefiles as a text file.

Hello,

I found out that in some rare cases grep can treat Makefile as a binary file. That happened to me on UTF-8 Gentoo if Makefile contained a character which was from extended ASCII table.
Without this patch the output of the grep command in the $(FILELIST) target is not valid (contains line "Binary file matches") and following commands fail to create feed index file.

Best Regards,
Martin Strbacka

Signed-off-by: Martin Strbacka <martin.strbacka@nic.cz>
SVN-Revision: 45966
include/scan.mk