ragel.sh 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # Ragel generator
  2. # For more information about Ragel: http://www.complang.org/ragel/
  3. export OPTIONS="-C -L -T0"
  4. #export OPTIONS="-C -L -G2"
  5. # SIP/SIPS/TEL URI parser
  6. ragel.exe $OPTIONS -o ./src/parsers/tsip_parser_uri.c ./ragel/tsip_parser_uri.rl
  7. # SIP message (both requests an responses) parser.
  8. ragel.exe $OPTIONS -o ./src/parsers/tsip_parser_message.c ./ragel/tsip_parser_message.rl
  9. # SIP headers parser
  10. ragel.exe $OPTIONS -o ./src/parsers/tsip_parser_header.c ./ragel/tsip_parser_header.rl
  11. # ==Allow
  12. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Allow.c ./ragel/tsip_parser_header_Allow.rl
  13. # ==Allow-Events
  14. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Allow_Events.c ./ragel/tsip_parser_header_Allow_Events.rl
  15. # ==Authorization
  16. ######ragel.exe $OPTIONS -o ./src/headers/tsip_header_Authorization.c ./ragel/tsip_parser_header_Authorization.rl
  17. # ==Call-ID
  18. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Call_ID.c ./ragel/tsip_parser_header_Call_ID.rl
  19. # ==Content-Length
  20. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Content_Length.c ./ragel/tsip_parser_header_Content_Length.rl
  21. # ==Content-Type
  22. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Content_Type.c ./ragel/tsip_parser_header_Content_Type.rl
  23. # ==Contact
  24. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Contact.c ./ragel/tsip_parser_header_Contact.rl
  25. # ==CSeq
  26. ragel.exe $OPTIONS -o ./src/headers/tsip_header_CSeq.c ./ragel/tsip_parser_header_CSeq.rl
  27. # ==Date
  28. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Date.c ./ragel/tsip_parser_header_Date.rl
  29. # ==Dummy
  30. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Dummy.c ./ragel/tsip_parser_header_Dummy.rl
  31. # ==Event
  32. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Event.c ./ragel/tsip_parser_header_Event.rl
  33. # ==Expires
  34. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Expires.c ./ragel/tsip_parser_header_Expires.rl
  35. # ==From
  36. ragel.exe $OPTIONS -o ./src/headers/tsip_header_From.c ./ragel/tsip_parser_header_From.rl
  37. # ==Max-Forwards
  38. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Max_Forwards.c ./ragel/tsip_parser_header_Max_Forwards.rl
  39. # ==Min-Expires
  40. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Min_Expires.c ./ragel/tsip_parser_header_Min_Expires.rl
  41. # ==Min-SE
  42. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Min_SE.c ./ragel/tsip_parser_header_Min_SE.rl
  43. # ==Path
  44. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Path.c ./ragel/tsip_parser_header_Path.rl
  45. # ==P-Access-Network-Info
  46. ragel.exe $OPTIONS -o ./src/headers/tsip_header_P_Access_Network_Info.c ./ragel/tsip_parser_header_P_Access_Network_Info.rl
  47. # ==P-Asserted-Identity
  48. ragel.exe $OPTIONS -o ./src/headers/tsip_header_P_Asserted_Identity.c ./ragel/tsip_parser_header_P_Asserted_Identity.rl
  49. # ==P-Associated-URI
  50. ragel.exe $OPTIONS -o ./src/headers/tsip_header_P_Associated_URI.c ./ragel/tsip_parser_header_P_Associated_URI.rl
  51. # ==P-Charging-Function-Addresses
  52. ragel.exe $OPTIONS -o ./src/headers/tsip_header_P_Charging_Function_Addresses.c ./ragel/tsip_parser_header_P_Charging_Function_Addresses.rl
  53. # ==P-Preferred-Identity
  54. ragel.exe $OPTIONS -o ./src/headers/tsip_header_P_Preferred_Identity.c ./ragel/tsip_parser_header_P_Preferred_Identity.rl
  55. # ==Privacy
  56. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Privacy.c ./ragel/tsip_parser_header_Privacy.rl
  57. # ==Proxy-Authenticate
  58. ########ragel.exe $OPTIONS -o ./src/headers/tsip_header_Proxy_Authenticate.c ./ragel/tsip_parser_header_Proxy_Authenticate.rl
  59. # ==Proxy-Authorization
  60. #########ragel.exe $OPTIONS -o ./src/headers/tsip_header_Proxy_Authorization.c ./ragel/tsip_parser_header_Proxy_Authorization.rl
  61. # ==Proxy-Require
  62. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Proxy_Require.c ./ragel/tsip_parser_header_Proxy_Require.rl
  63. # ==RAck
  64. ragel.exe $OPTIONS -o ./src/headers/tsip_header_RAck.c ./ragel/tsip_parser_header_RAck.rl
  65. # ==Record-Route
  66. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Record_Route.c ./ragel/tsip_parser_header_Record_Route.rl
  67. # ==Refer-Sub
  68. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Refer_Sub.c ./ragel/tsip_parser_header_Refer_Sub.rl
  69. # ==Refer-To
  70. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Refer_To.c ./ragel/tsip_parser_header_Refer_To.rl
  71. # ==Referred-By
  72. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Referred_By.c ./ragel/tsip_parser_header_Referred_By.rl
  73. # ==Require
  74. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Require.c ./ragel/tsip_parser_header_Require.rl
  75. # == Route
  76. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Route.c ./ragel/tsip_parser_header_Route.rl
  77. # ==RSeq
  78. ragel.exe $OPTIONS -o ./src/headers/tsip_header_RSeq.c ./ragel/tsip_parser_header_RSeq.rl
  79. # == Server
  80. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Server.c ./ragel/tsip_parser_header_Server.rl
  81. # == SIP-ETag
  82. ragel.exe $OPTIONS -o ./src/headers/tsip_header_SIP_ETag.c ./ragel/tsip_parser_header_SIP_ETag.rl
  83. # == SIP-If-Match
  84. ragel.exe $OPTIONS -o ./src/headers/tsip_header_SIP_If_Match.c ./ragel/tsip_parser_header_SIP_If_Match.rl
  85. # == Security-Client
  86. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Security_Client.c ./ragel/tsip_parser_header_Security_Client.rl
  87. # == Security-Server
  88. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Security_Server.c ./ragel/tsip_parser_header_Security_Server.rl
  89. # == Security-Verify
  90. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Security_Verify.c ./ragel/tsip_parser_header_Security_Verify.rl
  91. # == Service-Route
  92. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Service_Route.c ./ragel/tsip_parser_header_Service_Route.rl
  93. # == Session-Expires
  94. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Session_Expires.c ./ragel/tsip_parser_header_Session_Expires.rl
  95. # ==Subscription-State
  96. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Subscription_State.c ./ragel/tsip_parser_header_Subscription_State.rl
  97. # ==Supported
  98. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Supported.c ./ragel/tsip_parser_header_Supported.rl
  99. # ==To
  100. ragel.exe $OPTIONS -o ./src/headers/tsip_header_To.c ./ragel/tsip_parser_header_To.rl
  101. # ==User-Agent
  102. ragel.exe $OPTIONS -o ./src/headers/tsip_header_User_Agent.c ./ragel/tsip_parser_header_User_Agent.rl
  103. # ==Via
  104. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Via.c ./ragel/tsip_parser_header_Via.rl
  105. # ==Warning
  106. ragel.exe $OPTIONS -o ./src/headers/tsip_header_Warning.c ./ragel/tsip_parser_header_Warning.rl
  107. # ==WWW-Authenticate
  108. #########ragel.exe $OPTIONS -o ./src/headers/tsip_header_WWW_Authenticate.c ./ragel/tsip_parser_header_WWW_Authenticate.rl