- #!/usr/bin/perl -p -i.snmpbak
- # this script should convert header files included based on the
- # ucd-snmp header file names and convert them to their new net-snmp
- # names, assuming the code was originally intended to be compiled
- # within the ucd-snmp source tree.
- s/include "config.h"/include <net-snmp/net-snmp-config.h>/;
- s/include "asn1.h"/include <net-snmp/asn1.h>/;
- s/include "callback.h"/include <net-snmp/callback.h>/;
- s/include "data_list.h"/include <net-snmp/data_list.h>/;
- s/include "default_store.h"/include <net-snmp/default_store.h>/;
- s/include "getopt.h"/include <net-snmp/getopt.h>/;
- s/include "int64.h"/include <net-snmp/int64.h>/;
- s/include "keytools.h"/include <net-snmp/keytools.h>/;
- s/include "lcd_time.h"/include <net-snmp/lcd_time.h>/;
- s/include "libsnmp.h"/include <net-snmp/libsnmp.h>/;
- s/include "md5.h"/include <net-snmp/md5.h>/;
- s/include "mib.h"/include <net-snmp/mib.h>/;
- s/include "mt_support.h"/include <net-snmp/mt_support.h>/;
- s/include "net-snmp-config.h"/include <net-snmp/net-snmp-config.h>/;
- s/include "net-snmp-includes.h"/include <net-snmp/net-snmp-includes.h>/;
- s/include "oid_array.h"/include <net-snmp/oid_array.h>/;
- s/include "oid_stash.h"/include <net-snmp/oid_stash.h>/;
- s/include "parse.h"/include <net-snmp/parse.h>/;
- s/include "read_config.h"/include <net-snmp/read_config.h>/;
- s/include "scapi.h"/include <net-snmp/scapi.h>/;
- s/include "snmpAAL5PVCDomain.h"/include <net-snmp/snmpAAL5PVCDomain.h>/;
- s/include "snmp_alarm.h"/include <net-snmp/snmp_alarm.h>/;
- s/include "snmp_api.h"/include <net-snmp/snmp_api.h>/;
- s/include "snmpCallbackDomain.h"/include <net-snmp/snmpCallbackDomain.h>/;
- s/include "snmp_client.h"/include <net-snmp/snmp_client.h>/;
- s/include "snmp_debug.h"/include <net-snmp/snmp_debug.h>/;
- s/include "snmp_enum.h"/include <net-snmp/snmp_enum.h>/;
- s/include "snmp.h"/include <net-snmp/snmp.h>/;
- s/include "snmp_impl.h"/include <net-snmp/snmp_impl.h>/;
- s/include "snmpIPXDomain.h"/include <net-snmp/snmpIPXDomain.h>/;
- s/include "snmpksm.h"/include <net-snmp/snmpksm.h>/;
- s/include "snmp_locking.h"/include <net-snmp/snmp_locking.h>/;
- s/include "snmp_logging.h"/include <net-snmp/snmp_logging.h>/;
- s/include "snmp_parse_args.h"/include <net-snmp/snmp_parse_args.h>/;
- s/include "snmp_secmod.h"/include <net-snmp/snmp_secmod.h>/;
- s/include "snmp-tc.h"/include <net-snmp/snmp-tc.h>/;
- s/include "snmpTCPDomain.h"/include <net-snmp/snmpTCPDomain.h>/;
- s/include "snmpTCPIPv6Domain.h"/include <net-snmp/snmpTCPIPv6Domain.h>/;
- s/include "snmp_transport.h"/include <net-snmp/snmp_transport.h>/;
- s/include "snmpUDPDomain.h"/include <net-snmp/snmpUDPDomain.h>/;
- s/include "snmpUDPIPv6Domain.h"/include <net-snmp/snmpUDPIPv6Domain.h>/;
- s/include "snmpUnixDomain.h"/include <net-snmp/snmpUnixDomain.h>/;
- s/include "snmpusm.h"/include <net-snmp/snmpusm.h>/;
- s/include "snmpusm_init.h"/include <net-snmp/snmpusm_init.h>/;
- s/include "snmpv3.h"/include <net-snmp/snmpv3.h>/;
- s/include "system.h"/include <net-snmp/system.h>/;
- s/include "tools.h"/include <net-snmp/tools.h>/;
- s/include "transform_oids.h"/include <net-snmp/transform_oids.h>/;
- s/include "vacm.h"/include <net-snmp/vacm.h>/;
- s/include <asn1.h>/include <net-snmp/asn1.h>/;
- s/include <callback.h>/include <net-snmp/callback.h>/;
- s/include <data_list.h>/include <net-snmp/data_list.h>/;
- s/include <default_store.h>/include <net-snmp/default_store.h>/;
- s/include <getopt.h>/include <net-snmp/getopt.h>/;
- s/include <int64.h>/include <net-snmp/int64.h>/;
- s/include <keytools.h>/include <net-snmp/keytools.h>/;
- s/include <lcd_time.h>/include <net-snmp/lcd_time.h>/;
- s/include <libsnmp.h>/include <net-snmp/libsnmp.h>/;
- s/include <md5.h>/include <net-snmp/md5.h>/;
- s/include <mib.h>/include <net-snmp/mib.h>/;
- s/include <mt_support.h>/include <net-snmp/mt_support.h>/;
- s/include <net-snmp-config.h>/include <net-snmp/net-snmp-config.h>/;
- s/include <net-snmp-includes.h>/include <net-snmp/net-snmp-includes.h>/;
- s/include <oid_array.h>/include <net-snmp/oid_array.h>/;
- s/include <oid_stash.h>/include <net-snmp/oid_stash.h>/;
- s/include <parse.h>/include <net-snmp/parse.h>/;
- s/include <read_config.h>/include <net-snmp/read_config.h>/;
- s/include <scapi.h>/include <net-snmp/scapi.h>/;
- s/include <snmpAAL5PVCDomain.h>/include <net-snmp/snmpAAL5PVCDomain.h>/;
- s/include <snmp_alarm.h>/include <net-snmp/snmp_alarm.h>/;
- s/include <snmp_api.h>/include <net-snmp/snmp_api.h>/;
- s/include <snmpCallbackDomain.h>/include <net-snmp/snmpCallbackDomain.h>/;
- s/include <snmp_client.h>/include <net-snmp/snmp_client.h>/;
- s/include <snmp_debug.h>/include <net-snmp/snmp_debug.h>/;
- s/include <snmp_enum.h>/include <net-snmp/snmp_enum.h>/;
- s/include <snmp.h>/include <net-snmp/snmp.h>/;
- s/include <snmp_impl.h>/include <net-snmp/snmp_impl.h>/;
- s/include <snmpIPXDomain.h>/include <net-snmp/snmpIPXDomain.h>/;
- s/include <snmpksm.h>/include <net-snmp/snmpksm.h>/;
- s/include <snmp_locking.h>/include <net-snmp/snmp_locking.h>/;
- s/include <snmp_logging.h>/include <net-snmp/snmp_logging.h>/;
- s/include <snmp_parse_args.h>/include <net-snmp/snmp_parse_args.h>/;
- s/include <snmp_secmod.h>/include <net-snmp/snmp_secmod.h>/;
- s/include <snmp-tc.h>/include <net-snmp/snmp-tc.h>/;
- s/include <snmpTCPDomain.h>/include <net-snmp/snmpTCPDomain.h>/;
- s/include <snmpTCPIPv6Domain.h>/include <net-snmp/snmpTCPIPv6Domain.h>/;
- s/include <snmp_transport.h>/include <net-snmp/snmp_transport.h>/;
- s/include <snmpUDPDomain.h>/include <net-snmp/snmpUDPDomain.h>/;
- s/include <snmpUDPIPv6Domain.h>/include <net-snmp/snmpUDPIPv6Domain.h>/;
- s/include <snmpUnixDomain.h>/include <net-snmp/snmpUnixDomain.h>/;
- s/include <snmpusm.h>/include <net-snmp/snmpusm.h>/;
- s/include <snmpusm_init.h>/include <net-snmp/snmpusm_init.h>/;
- s/include <snmpv3.h>/include <net-snmp/snmpv3.h>/;
- s/include <system.h>/include <net-snmp/system.h>/;
- s/include <tools.h>/include <net-snmp/tools.h>/;
- s/include <transform_oids.h>/include <net-snmp/transform_oids.h>/;
- s/include <vacm.h>/include <net-snmp/vacm.h>/;
- s/"agent_read_config.h"/<net-snmp/agent/agent_read_config.h>/;
- s/"agent_registry.h"/<net-snmp/agent/agent_registry.h>/;
- s/"agent_index.h"/<net-snmp/agent/agent_index.h>/;
- s/"agent_trap.h"/<net-snmp/agent/agent_trap.h>/;
- s/"auto_nlist.h"/<net-snmp/agent/auto_nlist.h>/;
- s/"ds_agent.h"/<net-snmp/agent/ds_agent.h>/;
- s/"snmp_agent.h"/<net-snmp/agent/snmp_agent.h>/;
- s/"snmp_vars.h"/<net-snmp/agent/snmp_vars.h>/;
- s/"var_struct.h"/<net-snmp/agent/var_struct.h>/;
- s/"agent_handler.h"/<net-snmp/agent/agent_handler.h>/;
- s/"ucd-snmp-agent-includes.h"/<net-snmp/agent/net-snmp-agent-includes.h>/;
- s/"agent_handler.h"/<net-snmp/agent/agent_handler.h>/;
- s/"agent_callbacks.h"/<net-snmp/agent/agent_callbacks.h>/;
- s/"mib_modules.h"/<net-snmp/agent/mib_modules.h>/;
- s/<agent_read_config.h>/<net-snmp/agent/agent_read_config.h>/;
- s/<agent_registry.h>/<net-snmp/agent/agent_registry.h>/;
- s/<agent_index.h>/<net-snmp/agent/agent_index.h>/;
- s/<agent_trap.h>/<net-snmp/agent/agent_trap.h>/;
- s/<auto_nlist.h>/<net-snmp/agent/auto_nlist.h>/;
- s/<ds_agent.h>/<net-snmp/agent/ds_agent.h>/;
- s/<snmp_agent.h>/<net-snmp/agent/snmp_agent.h>/;
- s/<snmp_vars.h>/<net-snmp/agent/snmp_vars.h>/;
- s/<var_struct.h>/<net-snmp/agent/var_struct.h>/;
- s/<agent_handler.h>/<net-snmp/agent/agent_handler.h>/;
- s/<ucd-snmp-agent-includes.h>/<net-snmp/agent/net-snmp-agent-includes.h>/;
- s/<agent_handler.h>/<net-snmp/agent/agent_handler.h>/;
- s/<agent_callbacks.h>/<net-snmp/agent/agent_callbacks.h>/;
- s/<mib_modules.h>/<net-snmp/agent/mib_modules.h>/;