freeswitch/libs/sofia-sip/scripts/fix-include-sofia-sip
2010-10-03 05:53:07 -04:00

209 lines
11 KiB
Sed
Executable File

#! /bin/sed -f
#
# Run this script like
#
# fix-include-sofia-sip -i.bak source.h source.c
#
# or
#
# find . -name '*.[hc]' -print0 | xargs -0 fix-include-sofia-sip -i.bak
#
/^ *# *include/ {
# Not using features.h...
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"!
}