convertcode
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:7k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. #!/usr/bin/perl -p -i.snmpbak
  2. # this script should convert header files included based on the
  3. # ucd-snmp header file names and convert them to their new net-snmp
  4. # names, assuming the code was originally intended to be compiled
  5. # within the ucd-snmp source tree.
  6. s/include "config.h"/include <net-snmp/net-snmp-config.h>/;
  7. s/include "asn1.h"/include <net-snmp/asn1.h>/;
  8. s/include "callback.h"/include <net-snmp/callback.h>/;
  9. s/include "data_list.h"/include <net-snmp/data_list.h>/;
  10. s/include "default_store.h"/include <net-snmp/default_store.h>/;
  11. s/include "getopt.h"/include <net-snmp/getopt.h>/;
  12. s/include "int64.h"/include <net-snmp/int64.h>/;
  13. s/include "keytools.h"/include <net-snmp/keytools.h>/;
  14. s/include "lcd_time.h"/include <net-snmp/lcd_time.h>/;
  15. s/include "libsnmp.h"/include <net-snmp/libsnmp.h>/;
  16. s/include "md5.h"/include <net-snmp/md5.h>/;
  17. s/include "mib.h"/include <net-snmp/mib.h>/;
  18. s/include "mt_support.h"/include <net-snmp/mt_support.h>/;
  19. s/include "net-snmp-config.h"/include <net-snmp/net-snmp-config.h>/;
  20. s/include "net-snmp-includes.h"/include <net-snmp/net-snmp-includes.h>/;
  21. s/include "oid_array.h"/include <net-snmp/oid_array.h>/;
  22. s/include "oid_stash.h"/include <net-snmp/oid_stash.h>/;
  23. s/include "parse.h"/include <net-snmp/parse.h>/;
  24. s/include "read_config.h"/include <net-snmp/read_config.h>/;
  25. s/include "scapi.h"/include <net-snmp/scapi.h>/;
  26. s/include "snmpAAL5PVCDomain.h"/include <net-snmp/snmpAAL5PVCDomain.h>/;
  27. s/include "snmp_alarm.h"/include <net-snmp/snmp_alarm.h>/;
  28. s/include "snmp_api.h"/include <net-snmp/snmp_api.h>/;
  29. s/include "snmpCallbackDomain.h"/include <net-snmp/snmpCallbackDomain.h>/;
  30. s/include "snmp_client.h"/include <net-snmp/snmp_client.h>/;
  31. s/include "snmp_debug.h"/include <net-snmp/snmp_debug.h>/;
  32. s/include "snmp_enum.h"/include <net-snmp/snmp_enum.h>/;
  33. s/include "snmp.h"/include <net-snmp/snmp.h>/;
  34. s/include "snmp_impl.h"/include <net-snmp/snmp_impl.h>/;
  35. s/include "snmpIPXDomain.h"/include <net-snmp/snmpIPXDomain.h>/;
  36. s/include "snmpksm.h"/include <net-snmp/snmpksm.h>/;
  37. s/include "snmp_locking.h"/include <net-snmp/snmp_locking.h>/;
  38. s/include "snmp_logging.h"/include <net-snmp/snmp_logging.h>/;
  39. s/include "snmp_parse_args.h"/include <net-snmp/snmp_parse_args.h>/;
  40. s/include "snmp_secmod.h"/include <net-snmp/snmp_secmod.h>/;
  41. s/include "snmp-tc.h"/include <net-snmp/snmp-tc.h>/;
  42. s/include "snmpTCPDomain.h"/include <net-snmp/snmpTCPDomain.h>/;
  43. s/include "snmpTCPIPv6Domain.h"/include <net-snmp/snmpTCPIPv6Domain.h>/;
  44. s/include "snmp_transport.h"/include <net-snmp/snmp_transport.h>/;
  45. s/include "snmpUDPDomain.h"/include <net-snmp/snmpUDPDomain.h>/;
  46. s/include "snmpUDPIPv6Domain.h"/include <net-snmp/snmpUDPIPv6Domain.h>/;
  47. s/include "snmpUnixDomain.h"/include <net-snmp/snmpUnixDomain.h>/;
  48. s/include "snmpusm.h"/include <net-snmp/snmpusm.h>/;
  49. s/include "snmpusm_init.h"/include <net-snmp/snmpusm_init.h>/;
  50. s/include "snmpv3.h"/include <net-snmp/snmpv3.h>/;
  51. s/include "system.h"/include <net-snmp/system.h>/;
  52. s/include "tools.h"/include <net-snmp/tools.h>/;
  53. s/include "transform_oids.h"/include <net-snmp/transform_oids.h>/;
  54. s/include "vacm.h"/include <net-snmp/vacm.h>/;
  55. s/include <asn1.h>/include <net-snmp/asn1.h>/;
  56. s/include <callback.h>/include <net-snmp/callback.h>/;
  57. s/include <data_list.h>/include <net-snmp/data_list.h>/;
  58. s/include <default_store.h>/include <net-snmp/default_store.h>/;
  59. s/include <getopt.h>/include <net-snmp/getopt.h>/;
  60. s/include <int64.h>/include <net-snmp/int64.h>/;
  61. s/include <keytools.h>/include <net-snmp/keytools.h>/;
  62. s/include <lcd_time.h>/include <net-snmp/lcd_time.h>/;
  63. s/include <libsnmp.h>/include <net-snmp/libsnmp.h>/;
  64. s/include <md5.h>/include <net-snmp/md5.h>/;
  65. s/include <mib.h>/include <net-snmp/mib.h>/;
  66. s/include <mt_support.h>/include <net-snmp/mt_support.h>/;
  67. s/include <net-snmp-config.h>/include <net-snmp/net-snmp-config.h>/;
  68. s/include <net-snmp-includes.h>/include <net-snmp/net-snmp-includes.h>/;
  69. s/include <oid_array.h>/include <net-snmp/oid_array.h>/;
  70. s/include <oid_stash.h>/include <net-snmp/oid_stash.h>/;
  71. s/include <parse.h>/include <net-snmp/parse.h>/;
  72. s/include <read_config.h>/include <net-snmp/read_config.h>/;
  73. s/include <scapi.h>/include <net-snmp/scapi.h>/;
  74. s/include <snmpAAL5PVCDomain.h>/include <net-snmp/snmpAAL5PVCDomain.h>/;
  75. s/include <snmp_alarm.h>/include <net-snmp/snmp_alarm.h>/;
  76. s/include <snmp_api.h>/include <net-snmp/snmp_api.h>/;
  77. s/include <snmpCallbackDomain.h>/include <net-snmp/snmpCallbackDomain.h>/;
  78. s/include <snmp_client.h>/include <net-snmp/snmp_client.h>/;
  79. s/include <snmp_debug.h>/include <net-snmp/snmp_debug.h>/;
  80. s/include <snmp_enum.h>/include <net-snmp/snmp_enum.h>/;
  81. s/include <snmp.h>/include <net-snmp/snmp.h>/;
  82. s/include <snmp_impl.h>/include <net-snmp/snmp_impl.h>/;
  83. s/include <snmpIPXDomain.h>/include <net-snmp/snmpIPXDomain.h>/;
  84. s/include <snmpksm.h>/include <net-snmp/snmpksm.h>/;
  85. s/include <snmp_locking.h>/include <net-snmp/snmp_locking.h>/;
  86. s/include <snmp_logging.h>/include <net-snmp/snmp_logging.h>/;
  87. s/include <snmp_parse_args.h>/include <net-snmp/snmp_parse_args.h>/;
  88. s/include <snmp_secmod.h>/include <net-snmp/snmp_secmod.h>/;
  89. s/include <snmp-tc.h>/include <net-snmp/snmp-tc.h>/;
  90. s/include <snmpTCPDomain.h>/include <net-snmp/snmpTCPDomain.h>/;
  91. s/include <snmpTCPIPv6Domain.h>/include <net-snmp/snmpTCPIPv6Domain.h>/;
  92. s/include <snmp_transport.h>/include <net-snmp/snmp_transport.h>/;
  93. s/include <snmpUDPDomain.h>/include <net-snmp/snmpUDPDomain.h>/;
  94. s/include <snmpUDPIPv6Domain.h>/include <net-snmp/snmpUDPIPv6Domain.h>/;
  95. s/include <snmpUnixDomain.h>/include <net-snmp/snmpUnixDomain.h>/;
  96. s/include <snmpusm.h>/include <net-snmp/snmpusm.h>/;
  97. s/include <snmpusm_init.h>/include <net-snmp/snmpusm_init.h>/;
  98. s/include <snmpv3.h>/include <net-snmp/snmpv3.h>/;
  99. s/include <system.h>/include <net-snmp/system.h>/;
  100. s/include <tools.h>/include <net-snmp/tools.h>/;
  101. s/include <transform_oids.h>/include <net-snmp/transform_oids.h>/;
  102. s/include <vacm.h>/include <net-snmp/vacm.h>/;
  103. s/"agent_read_config.h"/<net-snmp/agent/agent_read_config.h>/;
  104. s/"agent_registry.h"/<net-snmp/agent/agent_registry.h>/;
  105. s/"agent_index.h"/<net-snmp/agent/agent_index.h>/;
  106. s/"agent_trap.h"/<net-snmp/agent/agent_trap.h>/;
  107. s/"auto_nlist.h"/<net-snmp/agent/auto_nlist.h>/;
  108. s/"ds_agent.h"/<net-snmp/agent/ds_agent.h>/;
  109. s/"snmp_agent.h"/<net-snmp/agent/snmp_agent.h>/;
  110. s/"snmp_vars.h"/<net-snmp/agent/snmp_vars.h>/;
  111. s/"var_struct.h"/<net-snmp/agent/var_struct.h>/;
  112. s/"agent_handler.h"/<net-snmp/agent/agent_handler.h>/;
  113. s/"ucd-snmp-agent-includes.h"/<net-snmp/agent/net-snmp-agent-includes.h>/;
  114. s/"agent_handler.h"/<net-snmp/agent/agent_handler.h>/;
  115. s/"agent_callbacks.h"/<net-snmp/agent/agent_callbacks.h>/;
  116. s/"mib_modules.h"/<net-snmp/agent/mib_modules.h>/;
  117. s/<agent_read_config.h>/<net-snmp/agent/agent_read_config.h>/;
  118. s/<agent_registry.h>/<net-snmp/agent/agent_registry.h>/;
  119. s/<agent_index.h>/<net-snmp/agent/agent_index.h>/;
  120. s/<agent_trap.h>/<net-snmp/agent/agent_trap.h>/;
  121. s/<auto_nlist.h>/<net-snmp/agent/auto_nlist.h>/;
  122. s/<ds_agent.h>/<net-snmp/agent/ds_agent.h>/;
  123. s/<snmp_agent.h>/<net-snmp/agent/snmp_agent.h>/;
  124. s/<snmp_vars.h>/<net-snmp/agent/snmp_vars.h>/;
  125. s/<var_struct.h>/<net-snmp/agent/var_struct.h>/;
  126. s/<agent_handler.h>/<net-snmp/agent/agent_handler.h>/;
  127. s/<ucd-snmp-agent-includes.h>/<net-snmp/agent/net-snmp-agent-includes.h>/;
  128. s/<agent_handler.h>/<net-snmp/agent/agent_handler.h>/;
  129. s/<agent_callbacks.h>/<net-snmp/agent/agent_callbacks.h>/;
  130. s/<mib_modules.h>/<net-snmp/agent/mib_modules.h>/;