svn commit: r320299 - stable/11/lib/libsysdecode

Bryan Drewery bdrewery at FreeBSD.org
Fri Jun 23 20:49:24 UTC 2017


Author: bdrewery
Date: Fri Jun 23 20:49:23 2017
New Revision: 320299
URL: https://svnweb.freebsd.org/changeset/base/320299

Log:
  MFC r320206,r320207:
  
    r320206:
      Follow-up r308602: Don't add missing headers to .depend.tables.h.
    r320207:
      Tweak r320206: Still create the TABLE but not the .depend entry for missing
      headers.
  
  Approved by:	re (gjb)

Modified:
  stable/11/lib/libsysdecode/mktables
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libsysdecode/mktables
==============================================================================
--- stable/11/lib/libsysdecode/mktables	Fri Jun 23 20:38:21 2017	(r320298)
+++ stable/11/lib/libsysdecode/mktables	Fri Jun 23 20:49:23 2017	(r320299)
@@ -65,17 +65,19 @@ gen_table()
 	else
 		filter="egrep -v"
 	fi
-	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
 


More information about the svn-src-stable mailing list