From: Chris Luke Date: Sat, 10 Sep 2016 00:16:04 +0000 (-0400) Subject: Check for zero-sized Graphvix config file on Ubuntu; VPP-396 X-Git-Tag: v17.01-rc0~229 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F2788%2F1;p=vpp.git Check for zero-sized Graphvix config file on Ubuntu; VPP-396 - The previous change only accounted for a missing Graphviz config file; apparently it can be zero-sized too. Change-Id: Ic6957d10cdc7cb7b9da72d2b2a0f8913100870c5 Signed-off-by: Chris Luke --- diff --git a/doxygen/Makefile b/doxygen/Makefile index ef52c493020..954191eb75c 100644 --- a/doxygen/Makefile +++ b/doxygen/Makefile @@ -113,7 +113,8 @@ ifeq ($(OS_ID),ubuntu) dpkg-query --show $$i >/dev/null 2>&1 || inst="$$inst $$i"; \ done; \ if [ "$$inst" ]; then sudo apt-get $(CONFIRM) $(FORCE) install $$inst; fi - @if [ ! -f /usr/lib/graphviz/config6a ]; then \ + @if [ ! -s /usr/lib/graphviz/config6a ]; then \ + echo "Rebuidlding system Graphviz configuration."; \ sudo dot -c; \ fi else ifneq ("$(wildcard /etc/redhat-release)","")