summaryrefslogtreecommitdiff
path: root/vtysh/extract.pl.in
diff options
context:
space:
mode:
authorpaul <paul>2004-09-13 05:00:18 +0000
committerpaul <paul>2004-09-13 05:00:18 +0000
commit0e82d0e1204e45ecce773a7e19f7d64140f7a66a (patch)
tree9c1065e4ca14d42e8d68eba935189f42aab182a4 /vtysh/extract.pl.in
parent72e2d828154a5f3ae463e211c5f3787fc0624a90 (diff)
2004-09-13 Paul Jakma <paul@dishone.st>
* 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.
Diffstat (limited to 'vtysh/extract.pl.in')
-rwxr-xr-xvtysh/extract.pl.in2
1 files changed, 1 insertions, 1 deletions
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;
}