Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2017 20:49:23 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r320299 - stable/11/lib/libsysdecode
Message-ID:  <201706232049.v5NKnNbm018516@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



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