svn commit: r276599 - head/contrib/unbound

Dag-Erling Smørgrav des at FreeBSD.org
Sat Jan 3 00:31:54 UTC 2015


Author: des
Date: Sat Jan  3 00:31:52 2015
New Revision: 276599
URL: https://svnweb.freebsd.org/changeset/base/276599

Log:
  Recognize the lexer and parser sources.

Modified:
  head/contrib/unbound/freebsd-sources.pl

Modified: head/contrib/unbound/freebsd-sources.pl
==============================================================================
--- head/contrib/unbound/freebsd-sources.pl	Sat Jan  3 00:26:21 2015	(r276598)
+++ head/contrib/unbound/freebsd-sources.pl	Sat Jan  3 00:31:52 2015	(r276599)
@@ -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;
-


More information about the svn-src-head mailing list