summaryrefslogtreecommitdiffstats
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
commit8f924b9f906f59cb791acd0a8f86d28e332913ff (patch)
tree0fde1086cfa7a9865456a47fd16850c6f18b2afc /vtysh/extract.pl.in
parentcd6aa91c0887b07d3e851857788463a61152bde2 (diff)
downloadquagga-bgp.rserver.before.tar.bz2
quagga-bgp.rserver.before.tar.xz
2004-09-13 Paul Jakma <paul@dishone.st>bgp.rserver.before
* 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;
}