From 7ca2a8903f28f7c25a42ce6b8c8fd077de6cb222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 3 Jan 2015 00:31:52 +0000 Subject: [PATCH] Recognize the lexer and parser sources. --- contrib/unbound/freebsd-sources.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/unbound/freebsd-sources.pl b/contrib/unbound/freebsd-sources.pl index a83d36fa539..a82be2220ef 100755 --- a/contrib/unbound/freebsd-sources.pl +++ b/contrib/unbound/freebsd-sources.pl @@ -51,7 +51,11 @@ sub get_sources($) { close(MAKE); chomp($objs); $objs =~ s/\.l?o\b/.c/g; - return (split(/\s+/, $objs)); + return map { + /lexer/ && s/c$/l/; + /parser/ && s/c$/y/; + $_; + } split(/\s+/, $objs); } MAIN:{ @@ -70,4 +74,3 @@ MAIN:{ } 1; -