From 88676e526c8f86e96af5cfe0811c6a7dcdf63b92 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 8 Jun 2021 08:17:05 +0200 Subject: T3170: check if any generated node.def file is empty --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b954bda8c..f0ecafd55 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,10 @@ interface_definitions: $(config_xml_obj) cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ip/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ip cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ipv6/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ipv6 + # XXX: test if there are empty node.def files - this is not allowed as these + # could mask help strings or mandatory priority statements + find $(TMPL_DIR) -name node.def -type f -empty -exec false {} + || sh -c 'echo "There are empty node.def files! Check your interface definitions." && exit 1' + .PHONY: op_mode_definitions .ONESHELL: op_mode_definitions: $(op_xml_obj) -- cgit v1.2.3