From 0750d21fcfb034e47f781b09d984bfeec62b56a4 Mon Sep 17 00:00:00 2001 From: hasso Date: Sat, 24 May 2003 21:41:49 +0000 Subject: Revert my http://hasso.linux.ee/zebra/ht-ifrmap-14042003.patch patch. Used same idea as in lib/distribute.c to allow extract.pl to pick up commands for vtysh. --- vtysh/Makefile.am | 4 ++-- vtysh/extract.pl | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'vtysh') diff --git a/vtysh/Makefile.am b/vtysh/Makefile.am index e6e92f1a..89156f90 100644 --- a/vtysh/Makefile.am +++ b/vtysh/Makefile.am @@ -16,9 +16,9 @@ sysconf_DATA = vtysh.conf.sample EXTRA_DIST = extract.pl vtysh.conf.sample rebuild4: - ./extract.pl ../zebra/*.c ../ripd/*.c ../ospfd/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c > vtysh_cmd.c + ./extract.pl ../zebra/*.c ../ripd/*.c ../ospfd/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c > vtysh_cmd.c rebuild: - ./extract.pl ../zebra/*.c ../ripd/*.c ../ripngd/*.c ../ospfd/*.c ../ospf6d/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c > vtysh_cmd.c + ./extract.pl ../zebra/*.c ../ripd/*.c ../ripngd/*.c ../ospfd/*.c ../ospf6d/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c > vtysh_cmd.c vtysh_cmd.c: rebuild diff --git a/vtysh/extract.pl b/vtysh/extract.pl index 4a49a621..ca88cf7b 100755 --- a/vtysh/extract.pl +++ b/vtysh/extract.pl @@ -108,6 +108,9 @@ foreach (@ARGV) { $protocol = "VTYSH_RIPD"; } } + if ($file =~ /if_rmap.c/) { + $protocol = "VTYSH_RIPNGD"; + } } else { ($protocol) = ($file =~ /\/([a-z0-9]+)/); $protocol = "VTYSH_" . uc $protocol; -- cgit v1.2.1