aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-27 02:50:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-27 02:50:53 +0000
commit6aed8813fb1206e8ae33a6c19c48eb6efb7aee65 (patch)
tree85db67c89077e786ff5ff176dc31755860285c15 /include
parent1a8d26f5807ac580d4bc32696fb42e2250cba2cd (diff)
downloadupstream-6aed8813fb1206e8ae33a6c19c48eb6efb7aee65.tar.gz
upstream-6aed8813fb1206e8ae33a6c19c48eb6efb7aee65.tar.bz2
upstream-6aed8813fb1206e8ae33a6c19c48eb6efb7aee65.zip
improve error message output of metadata scan - fix newline break and do not hide broken makefiles after the first invocation anymore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16101 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/scan.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scan.mk b/include/scan.mk
index 1cf45e58b6..288a10050b 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -27,7 +27,7 @@ define PackageDir
{ \
$$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \
echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \
- $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || echo "ERROR: please fix $(SCAN_DIR)/$(2)/Makefile" >&2; \
+ $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile\n) rm -f $$@; }; \
echo; \
} > $$@ || true
endef
@@ -62,7 +62,7 @@ $(TARGET_STAMP)::
$(TMP_DIR)/.$(SCAN_TARGET): $(TARGET_STAMP) $(SCAN_STAMP)
$(call progress,Collecting $(SCAN_NAME) info: merging...)
- cat $(FILELIST) | awk '{gsub(/\//, "_", $$0);print "$(TMP_DIR)/info/.$(SCAN_TARGET)-" $$0}' | xargs cat > $@
+ -cat $(FILELIST) | awk '{gsub(/\//, "_", $$0);print "$(TMP_DIR)/info/.$(SCAN_TARGET)-" $$0}' | xargs cat > $@ 2>/dev/null
$(call progress,Collecting $(SCAN_NAME) info: done)
echo