From 8a6724a0ee3803f1e9f487d8111bb3f6cb8d16db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 5 Nov 2016 00:55:53 +0100 Subject: [PATCH] makefile-engine: use grep -a for RDEF parsing ThemeManager has an UTF-8 copyright symbol in its rdef file. The chroot set up by haikuporter doesn't export anything that would hint grep to accept UTF-8 as text, so it freaks out... So we force it to accept anything as text. --- data/develop/makefile-engine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/develop/makefile-engine b/data/develop/makefile-engine index 05577d475b..fcf0a781ee 100644 --- a/data/develop/makefile-engine +++ b/data/develop/makefile-engine @@ -302,9 +302,9 @@ $(OBJ_DIR)/%.o : %.CPP # Rules to compile the resource definition files. $(OBJ_DIR)/%.rsrc : %.rdef - cat $< | $(CC) -E $(INCLUDES) $(CFLAGS) - | grep -v '^#' | $(RESCOMP) -I $(dir $<) -o "$@" - + cat $< | $(CC) -E $(INCLUDES) $(CFLAGS) - | grep -av '^#' | $(RESCOMP) -I $(dir $<) -o "$@" - $(OBJ_DIR)/%.rsrc : %.RDEF - cat $< | $(CC) -E $(INCLUDES) $(CFLAGS) - | grep -v '^#' | $(RESCOMP) -I $(dir $<) -o "$@" - + cat $< | $(CC) -E $(INCLUDES) $(CFLAGS) - | grep -av '^#' | $(RESCOMP) -I $(dir $<) -o "$@" - # Rule to compile localization data catalogs. $(CATALOGS_DIR)/%.catalog : $(CATKEYS_DIR)/%.catkeys