Module Name: src
Committed By: bad
Date: Thu Sep 12 17:35:58 UTC 2019
Modified Files:
src/sys/rump: listsrcdirs
Log Message:
Summary: add the files from src/tools/headerlist to the output.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/rump/listsrcdirs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/listsrcdirs
diff -u src/sys/rump/listsrcdirs:1.40 src/sys/rump/listsrcdirs:1.41
--- src/sys/rump/listsrcdirs:1.40 Thu Sep 12 15:17:08 2019
+++ src/sys/rump/listsrcdirs Thu Sep 12 17:35:58 2019
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: listsrcdirs,v 1.40 2019/09/12 15:17:08 bad Exp $
+# $NetBSD: listsrcdirs,v 1.41 2019/09/12 17:35:58 bad Exp $
#
#
@@ -63,6 +63,20 @@ lsrc ()
iswanted ${what} && for arg in $* ; do echo src${pfx}${arg} ; done
}
+include_headerlist ()
+{
+ what=$1
+ pfx=$2
+ shift 2
+
+ if iswanted ${what}; then
+ [ -f headerlist ] \
+ || { echo 'missing file: headerlist' 1>&2; exit 1; }
+ sed -E -e '/^#/d' -e '/^[ ]*$/d' \
+ -e "/^\.?\/?/s##src${pfx}#" headerlist
+ fi
+}
+
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 riscv"
ARCHS_EXTRA="arm/arm32 Makefile"
@@ -133,6 +147,8 @@ if ${cvsmode}; then
for extra in ${ARCHS_EXTRA}; do
lsrc sys /sys/arch/ ${extra}
done
+ # the includes mentioned in src/tools/headerlist are required
+ include_headerlist sys /sys/arch/
else
lsrc sys / sys