summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-07-22 09:29:00 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-07-22 09:29:00 +0000
commit2a7d5bb92bcf5f5eb28599a0bad34f3fe713a68e (patch)
tree332536f0a944b25a7ba0611f67631bcd9a83df4b
parent4aa7a21f6094125b43feee8bd294859f13e0596e (diff)
Fix generated Perl headers.
With input from bluhm@
-rw-r--r--regress/usr.sbin/switchd/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.sbin/switchd/Makefile b/regress/usr.sbin/switchd/Makefile
index 8319910e3e2..9d9c8894d4a 100644
--- a/regress/usr.sbin/switchd/Makefile
+++ b/regress/usr.sbin/switchd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 2016/07/19 17:04:19 reyk Exp $
+# $OpenBSD: Makefile,v 1.2 2016/07/22 09:28:59 reyk Exp $
# The following ports must be installed for the regression tests:
# p5-Net-Pcap Perl interface for libpcap
@@ -54,9 +54,9 @@ run-regress-$a: $a
${OFP_HEADERS}:
@-mkdir -p ${.OBJDIR}/net
- # XXX headers can be in two different locations
- @-test ${SRC_PATH}/$@ && cp ${SRC_PATH}/$@ ${.OBJDIR}
- @-test ${SYS_PATH}/$@ && cp ${SYS_PATH}/$@ ${.OBJDIR}/net
+ @-for i in ${SRC_PATH}/$@ ${SYS_PATH}/$@; do \
+ test -s $$i && grep -v '^#include' $$i > ${.OBJDIR}/$@; \
+ done
.SUFFIXES: .h .ph
.h.ph: