From 0e82d0e1204e45ecce773a7e19f7d64140f7a66a Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 13 Sep 2004 05:00:18 +0000 Subject: 2004-09-13 Paul Jakma * Makefile.am: extract.pl isnt in srcdir, it's always in the builddir. * extract.pl.in: match on end of filenames, filename could contain various preamble due to out of tree builds. --- vtysh/extract.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vtysh/extract.pl.in') diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index 6882b10b..ae83a2e8 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -117,7 +117,7 @@ foreach (@ARGV) { } } } else { - ($protocol) = ($file =~ /\/([a-z0-9]+)/); + ($protocol) = ($file =~ /^.*\/([a-z0-9]+)\/[a-zA-Z0-9_\-]+\.c$/); $protocol = "VTYSH_" . uc $protocol; } -- cgit v1.2.1