Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2017 23:28:25 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320207 - head/lib/libsysdecode
Message-ID:  <201706212328.v5LNSPDK092056@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Wed Jun 21 23:28:24 2017
New Revision: 320207
URL: https://svnweb.freebsd.org/changeset/base/320207

Log:
  Tweak r320206: Still create the TABLE but not the .depend entry for missing headers.
  
  X-MFC-With:	r320206
  MFC after:	3 days
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/libsysdecode/mktables

Modified: head/lib/libsysdecode/mktables
==============================================================================
--- head/lib/libsysdecode/mktables	Wed Jun 21 23:01:18 2017	(r320206)
+++ head/lib/libsysdecode/mktables	Wed Jun 21 23:28:24 2017	(r320207)
@@ -65,18 +65,19 @@ gen_table()
 	else
 		filter="egrep -v"
 	fi
-	[ -e "${include_dir}/${file}" ] || return 0
-	all_headers="${all_headers:+${all_headers} }${file}"
 	cat <<_EOF_
 TABLE_START(${name})
 _EOF_
-	egrep "^#[[:space:]]*define[[:space:]]+"${grep}"[[:space:]]*" \
-		$include_dir/$file | ${filter} ${excl} | \
-	awk '{ for (i = 1; i <= NF; i++) \
-		if ($i ~ /define/) \
-			break; \
-		++i; \
-		printf "TABLE_ENTRY(%s)\n", $i }'
+	if [ -e "${include_dir}/${file}" ]; then
+		all_headers="${all_headers:+${all_headers} }${file}"
+		egrep "^#[[:space:]]*define[[:space:]]+"${grep}"[[:space:]]*" \
+			$include_dir/$file | ${filter} ${excl} | \
+		awk '{ for (i = 1; i <= NF; i++) \
+			if ($i ~ /define/) \
+				break; \
+			++i; \
+			printf "TABLE_ENTRY(%s)\n", $i }'
+	fi
 cat <<_EOF_
 TABLE_END
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706212328.v5LNSPDK092056>