fix-include-sofia-sip 11.3 KB
Newer Older
1
#! /bin/sed -f
2
#
3 4 5 6 7 8
# Run this script like
#
# fix-include-sofia-sip -i.bak source.h source.c
#
# or
#
9
# find . -name '*.[hc]' -print0 | xargs -0 fix-include-sofia-sip -i.bak
10
#
11
/^ *# *include/ {
12
# Not using features.h...
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
s!include  *<sofia-sip/features.h>!include <sofia-sip/sofia_features.h>!
s!include  *"sofia-sip/features.h"!include "sofia-sip/sofia_features.h"!
s!include  *<bnf.h>!include <sofia-sip/bnf.h>!
s!include  *<sofia_sip_features.h>!include <sofia-sip/sofia_features.h>!
s!include  *<http.h>!include <sofia-sip/http.h>!
s!include  *<http_hclasses.h>!include <sofia-sip/http_hclasses.h>!
s!include  *<http_header.h>!include <sofia-sip/http_header.h>!
s!include  *<http_parser.h>!include <sofia-sip/http_parser.h>!
s!include  *<http_protos.h>!include <sofia-sip/http_protos.h>!
s!include  *<http_status.h>!include <sofia-sip/http_status.h>!
s!include  *<http_tag.h>!include <sofia-sip/http_tag.h>!
s!include  *<http_tag_class.h>!include <sofia-sip/http_tag_class.h>!
s!include  *<base64.h>!include <sofia-sip/base64.h>!
s!include  *<rc4.h>!include <sofia-sip/rc4.h>!
s!include  *<sha1.h>!include <sofia-sip/sha1.h>!
s!include  *<string0.h>!include <sofia-sip/string0.h>!
s!include  *<token64.h>!include <sofia-sip/token64.h>!
s!include  *<uniqueid.h>!include <sofia-sip/uniqueid.h>!
s!include  *<utf8.h>!include <sofia-sip/utf8.h>!
s!include  *<auth_client.h>!include <sofia-sip/auth_client.h>!
s!include  *<auth_digest.h>!include <sofia-sip/auth_digest.h>!
s!include  *<auth_module.h>!include <sofia-sip/auth_module.h>!
s!include  *<auth_plugin.h>!include <sofia-sip/auth_plugin.h>!
s!include  *<msg.h>!include <sofia-sip/msg.h>!
s!include  *<msg_addr.h>!include <sofia-sip/msg_addr.h>!
s!include  *<msg_buffer.h>!include <sofia-sip/msg_buffer.h>!
s!include  *<msg_date.h>!include <sofia-sip/msg_date.h>!
s!include  *<msg_header.h>!include <sofia-sip/msg_header.h>!
s!include  *<msg_mclass.h>!include <sofia-sip/msg_mclass.h>!
s!include  *<msg_mclass_hash.h>!include <sofia-sip/msg_mclass_hash.h>!
s!include  *<msg_mime.h>!include <sofia-sip/msg_mime.h>!
s!include  *<msg_mime_protos.h>!include <sofia-sip/msg_mime_protos.h>!
s!include  *<msg_parser.h>!include <sofia-sip/msg_parser.h>!
s!include  *<msg_protos.h>!include <sofia-sip/msg_protos.h>!
s!include  *<msg_tag_class.h>!include <sofia-sip/msg_tag_class.h>!
s!include  *<msg_types.h>!include <sofia-sip/msg_types.h>!
s!include  *<nea.h>!include <sofia-sip/nea.h>!
s!include  *<nea_tag.h>!include <sofia-sip/nea_tag.h>!
s!include  *<nta.h>!include <sofia-sip/nta.h>!
s!include  *<nta_stateless.h>!include <sofia-sip/nta_stateless.h>!
s!include  *<nta_tag.h>!include <sofia-sip/nta_tag.h>!
s!include  *<nta_tport.h>!include <sofia-sip/nta_tport.h>!
s!include  *<sl_utils.h>!include <sofia-sip/sl_utils.h>!
s!include  *<nth.h>!include <sofia-sip/nth.h>!
s!include  *<nth_tag.h>!include <sofia-sip/nth_tag.h>!
s!include  *<nua.h>!include <sofia-sip/nua.h>!
s!include  *<nua_tag.h>!include <sofia-sip/nua_tag.h>!
s!include  *<sdp.h>!include <sofia-sip/sdp.h>!
s!include  *<sdp_tag.h>!include <sofia-sip/sdp_tag.h>!
s!include  *<sip.h>!include <sofia-sip/sip.h>!
s!include  *<sip_hclasses.h>!include <sofia-sip/sip_hclasses.h>!
s!include  *<sip_header.h>!include <sofia-sip/sip_header.h>!
s!include  *<sip_parser.h>!include <sofia-sip/sip_parser.h>!
s!include  *<sip_protos.h>!include <sofia-sip/sip_protos.h>!
s!include  *<sip_status.h>!include <sofia-sip/sip_status.h>!
s!include  *<sip_tag.h>!include <sofia-sip/sip_tag.h>!
s!include  *<sip_tag_class.h>!include <sofia-sip/sip_tag_class.h>!
s!include  *<sip_util.h>!include <sofia-sip/sip_util.h>!
s!include  *<soa.h>!include <sofia-sip/soa.h>!
s!include  *<soa_add.h>!include <sofia-sip/soa_add.h>!
s!include  *<soa_session.h>!include <sofia-sip/soa_session.h>!
s!include  *<soa_tag.h>!include <sofia-sip/soa_tag.h>!
s!include  *<sresolv.h>!include <sofia-sip/sresolv.h>!
s!include  *<stun.h>!include <sofia-sip/stun.h>!
s!include  *<stun_common.h>!include <sofia-sip/stun_common.h>!
s!include  *<stun_tag.h>!include <sofia-sip/stun_tag.h>!
s!include  *<htable.h>!include <sofia-sip/htable.h>!
s!include  *<htable2.h>!include <sofia-sip/htable2.h>!
s!include  *<rbtree.h>!include <sofia-sip/rbtree.h>!
s!include  *<su.h>!include <sofia-sip/su.h>!
s!include  *<su_addrinfo.h>!include <sofia-sip/su_addrinfo.h>!
s!include  *<su_alloc.h>!include <sofia-sip/su_alloc.h>!
s!include  *<su_alloc_stat.h>!include <sofia-sip/su_alloc_stat.h>!
s!include  *<su_memmem.h>!include <sofia-sip/su_bm.h>!
s!include  *<su_config.h>!include <sofia-sip/su_config.h>!
s!include  *<su_configure.h>!include <sofia-sip/su_configure.h>!
s!include  *<su_debug.h>!include <sofia-sip/su_debug.h>!
s!include  *<su_errno.h>!include <sofia-sip/su_errno.h>!
s!include  *<su_localinfo.h>!include <sofia-sip/su_localinfo.h>!
s!include  *<su_log.h>!include <sofia-sip/su_log.h>!
s!include  *<su_md5.h>!include <sofia-sip/su_md5.h>!
s!include  *<su_source.h>!include <sofia-sip/su_source.h>!
s!include  *<su_strlst.h>!include <sofia-sip/su_strlst.h>!
s!include  *<su_tag.h>!include <sofia-sip/su_tag.h>!
s!include  *<su_tag_class.h>!include <sofia-sip/su_tag_class.h>!
s!include  *<su_tag_inline.h>!include <sofia-sip/su_tag_inline.h>!
s!include  *<su_tag_io.h>!include <sofia-sip/su_tag_io.h>!
s!include  *<su_tagarg.h>!include <sofia-sip/su_tagarg.h>!
s!include  *<su_time.h>!include <sofia-sip/su_time.h>!
s!include  *<su_types.h>!include <sofia-sip/su_types.h>!
s!include  *<su_uniqueid.h>!include <sofia-sip/su_uniqueid.h>!
s!include  *<su_vector.h>!include <sofia-sip/su_vector.h>!
s!include  *<su_wait.h>!include <sofia-sip/su_wait.h>!
s!include  *<tstdef.h>!include <sofia-sip/tstdef.h>!
s!include  *<tport.h>!include <sofia-sip/tport.h>!
s!include  *<tport_tag.h>!include <sofia-sip/tport_tag.h>!
s!include  *<url.h>!include <sofia-sip/url.h>!
s!include  *<url_tag.h>!include <sofia-sip/url_tag.h>!
s!include  *<url_tag_class.h>!include <sofia-sip/url_tag_class.h>!
s!include  *"bnf.h"!include "sofia-sip/bnf.h"!
s!include  *"sofia_sip_features.h"!include "sofia-sip/sofia_features.h"!
s!include  *"http.h"!include "sofia-sip/http.h"!
s!include  *"http_hclasses.h"!include "sofia-sip/http_hclasses.h"!
s!include  *"http_header.h"!include "sofia-sip/http_header.h"!
s!include  *"http_parser.h"!include "sofia-sip/http_parser.h"!
s!include  *"http_protos.h"!include "sofia-sip/http_protos.h"!
s!include  *"http_status.h"!include "sofia-sip/http_status.h"!
s!include  *"http_tag.h"!include "sofia-sip/http_tag.h"!
s!include  *"http_tag_class.h"!include "sofia-sip/http_tag_class.h"!
s!include  *"base64.h"!include "sofia-sip/base64.h"!
s!include  *"rc4.h"!include "sofia-sip/rc4.h"!
s!include  *"sha1.h"!include "sofia-sip/sha1.h"!
s!include  *"string0.h"!include "sofia-sip/string0.h"!
s!include  *"token64.h"!include "sofia-sip/token64.h"!
s!include  *"uniqueid.h"!include "sofia-sip/uniqueid.h"!
s!include  *"utf8.h"!include "sofia-sip/utf8.h"!
s!include  *"auth_client.h"!include "sofia-sip/auth_client.h"!
s!include  *"auth_digest.h"!include "sofia-sip/auth_digest.h"!
s!include  *"auth_module.h"!include "sofia-sip/auth_module.h"!
s!include  *"auth_plugin.h"!include "sofia-sip/auth_plugin.h"!
s!include  *"msg.h"!include "sofia-sip/msg.h"!
s!include  *"msg_addr.h"!include "sofia-sip/msg_addr.h"!
s!include  *"msg_buffer.h"!include "sofia-sip/msg_buffer.h"!
s!include  *"msg_date.h"!include "sofia-sip/msg_date.h"!
s!include  *"msg_header.h"!include "sofia-sip/msg_header.h"!
s!include  *"msg_mclass.h"!include "sofia-sip/msg_mclass.h"!
s!include  *"msg_mclass_hash.h"!include "sofia-sip/msg_mclass_hash.h"!
s!include  *"msg_mime.h"!include "sofia-sip/msg_mime.h"!
s!include  *"msg_mime_protos.h"!include "sofia-sip/msg_mime_protos.h"!
s!include  *"msg_parser.h"!include "sofia-sip/msg_parser.h"!
s!include  *"msg_protos.h"!include "sofia-sip/msg_protos.h"!
s!include  *"msg_tag_class.h"!include "sofia-sip/msg_tag_class.h"!
s!include  *"msg_types.h"!include "sofia-sip/msg_types.h"!
s!include  *"nea.h"!include "sofia-sip/nea.h"!
s!include  *"nea_tag.h"!include "sofia-sip/nea_tag.h"!
s!include  *"nta.h"!include "sofia-sip/nta.h"!
s!include  *"nta_stateless.h"!include "sofia-sip/nta_stateless.h"!
s!include  *"nta_tag.h"!include "sofia-sip/nta_tag.h"!
s!include  *"nta_tport.h"!include "sofia-sip/nta_tport.h"!
s!include  *"sl_utils.h"!include "sofia-sip/sl_utils.h"!
s!include  *"nth.h"!include "sofia-sip/nth.h"!
s!include  *"nth_tag.h"!include "sofia-sip/nth_tag.h"!
s!include  *"nua.h"!include "sofia-sip/nua.h"!
s!include  *"nua_tag.h"!include "sofia-sip/nua_tag.h"!
s!include  *"sdp.h"!include "sofia-sip/sdp.h"!
s!include  *"sdp_tag.h"!include "sofia-sip/sdp_tag.h"!
s!include  *"sip.h"!include "sofia-sip/sip.h"!
s!include  *"sip_hclasses.h"!include "sofia-sip/sip_hclasses.h"!
s!include  *"sip_header.h"!include "sofia-sip/sip_header.h"!
s!include  *"sip_parser.h"!include "sofia-sip/sip_parser.h"!
s!include  *"sip_protos.h"!include "sofia-sip/sip_protos.h"!
s!include  *"sip_status.h"!include "sofia-sip/sip_status.h"!
s!include  *"sip_tag.h"!include "sofia-sip/sip_tag.h"!
s!include  *"sip_tag_class.h"!include "sofia-sip/sip_tag_class.h"!
s!include  *"sip_util.h"!include "sofia-sip/sip_util.h"!
s!include  *"soa.h"!include "sofia-sip/soa.h"!
s!include  *"soa_add.h"!include "sofia-sip/soa_add.h"!
s!include  *"soa_session.h"!include "sofia-sip/soa_session.h"!
s!include  *"soa_tag.h"!include "sofia-sip/soa_tag.h"!
s!include  *"sresolv.h"!include "sofia-sip/sresolv.h"!
s!include  *"stun.h"!include "sofia-sip/stun.h"!
s!include  *"stun_common.h"!include "sofia-sip/stun_common.h"!
s!include  *"stun_tag.h"!include "sofia-sip/stun_tag.h"!
s!include  *"htable.h"!include "sofia-sip/htable.h"!
s!include  *"htable2.h"!include "sofia-sip/htable2.h"!
s!include  *"rbtree.h"!include "sofia-sip/rbtree.h"!
s!include  *"su.h"!include "sofia-sip/su.h"!
s!include  *"su_addrinfo.h"!include "sofia-sip/su_addrinfo.h"!
s!include  *"su_alloc.h"!include "sofia-sip/su_alloc.h"!
s!include  *"su_alloc_stat.h"!include "sofia-sip/su_alloc_stat.h"!
s!include  *"su_memmem.h"!include "sofia-sip/su_bm.h"!
s!include  *"su_config.h"!include "sofia-sip/su_config.h"!
s!include  *"su_configure.h"!include "sofia-sip/su_configure.h"!
s!include  *"su_debug.h"!include "sofia-sip/su_debug.h"!
s!include  *"su_errno.h"!include "sofia-sip/su_errno.h"!
s!include  *"su_localinfo.h"!include "sofia-sip/su_localinfo.h"!
s!include  *"su_log.h"!include "sofia-sip/su_log.h"!
s!include  *"su_md5.h"!include "sofia-sip/su_md5.h"!
s!include  *"su_source.h"!include "sofia-sip/su_source.h"!
s!include  *"su_strlst.h"!include "sofia-sip/su_strlst.h"!
s!include  *"su_tag.h"!include "sofia-sip/su_tag.h"!
s!include  *"su_tag_class.h"!include "sofia-sip/su_tag_class.h"!
s!include  *"su_tag_inline.h"!include "sofia-sip/su_tag_inline.h"!
s!include  *"su_tag_io.h"!include "sofia-sip/su_tag_io.h"!
s!include  *"su_tagarg.h"!include "sofia-sip/su_tagarg.h"!
s!include  *"su_time.h"!include "sofia-sip/su_time.h"!
s!include  *"su_types.h"!include "sofia-sip/su_types.h"!
s!include  *"su_uniqueid.h"!include "sofia-sip/su_uniqueid.h"!
s!include  *"su_vector.h"!include "sofia-sip/su_vector.h"!
s!include  *"su_wait.h"!include "sofia-sip/su_wait.h"!
s!include  *"tstdef.h"!include "sofia-sip/tstdef.h"!
s!include  *"tport.h"!include "sofia-sip/tport.h"!
s!include  *"tport_tag.h"!include "sofia-sip/tport_tag.h"!
s!include  *"url.h"!include "sofia-sip/url.h"!
s!include  *"url_tag.h"!include "sofia-sip/url_tag.h"!
s!include  *"url_tag_class.h"!include "sofia-sip/url_tag_class.h"!
209
}