esruby 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +6 -6
  3. data/bin/esruby +9 -0
  4. data/lib/esruby.rb +8 -0
  5. data/resources/mruby/build_config.rb +0 -1
  6. data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +1 -1
  7. data/resources/project_template/app/app.rb +2 -0
  8. data/resources/project_template/config.rb +35 -0
  9. data/resources/project_template/www/index.html +17 -0
  10. metadata +6 -377
  11. data/resources/mruby/bin/mirb +0 -0
  12. data/resources/mruby/bin/mrbc +0 -0
  13. data/resources/mruby/bin/mruby +0 -0
  14. data/resources/mruby/bin/mruby-strip +0 -0
  15. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/README.md +0 -82
  16. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +0 -63
  17. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +0 -232
  18. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +0 -333
  19. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +0 -313
  20. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +0 -45
  21. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +0 -959
  22. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +0 -5
  23. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +0 -4981
  24. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +0 -67
  25. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +0 -113
  26. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +0 -35
  27. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +0 -473
  28. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +0 -370
  29. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +0 -92
  30. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +0 -877
  31. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +0 -2917
  32. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +0 -611
  33. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +0 -639
  34. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +0 -7
  35. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +0 -253
  36. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +0 -935
  37. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +0 -551
  38. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +0 -1015
  39. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +0 -616
  40. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +0 -1230
  41. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +0 -21280
  42. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +0 -21280
  43. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +0 -273
  44. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +0 -2421
  45. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +0 -1144
  46. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  47. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +0 -17
  48. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  49. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +0 -29
  50. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +0 -343
  51. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +0 -54
  52. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +0 -1552
  53. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +0 -392
  54. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +0 -392
  55. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +0 -343
  56. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +0 -1804
  57. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +0 -21280
  58. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +0 -1082
  59. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +0 -708
  60. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +0 -212
  61. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +0 -180
  62. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +0 -109
  63. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +0 -204
  64. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +0 -383
  65. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +0 -76
  66. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +0 -108
  67. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +0 -112
  68. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +0 -91
  69. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +0 -65
  70. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +0 -61
  71. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +0 -128
  72. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +0 -110
  73. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +0 -46
  74. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +0 -46
  75. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +0 -46
  76. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +0 -108
  77. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +0 -68
  78. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +0 -57
  79. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +0 -60
  80. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +0 -64
  81. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +0 -61
  82. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +0 -108
  83. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +0 -55
  84. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +0 -48
  85. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +0 -48
  86. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +0 -58
  87. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +0 -51
  88. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +0 -68
  89. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +0 -57
  90. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +0 -46
  91. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +0 -2786
  92. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +0 -517
  93. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +0 -243
  94. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +0 -216
  95. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +0 -368
  96. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +0 -426
  97. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +0 -757
  98. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +0 -458
  99. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +0 -86
  100. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +0 -233
  101. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +0 -474
  102. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +0 -2953
  103. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +0 -195
  104. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +0 -292
  105. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +0 -158
  106. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +0 -110
  107. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +0 -225
  108. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +0 -521
  109. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +0 -1082
  110. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +0 -270
  111. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +0 -180
  112. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +0 -92
  113. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +0 -86
  114. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +0 -202
  115. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +0 -9909
  116. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +0 -390
  117. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +0 -389
  118. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +0 -61
  119. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +0 -98
  120. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +0 -106
  121. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +0 -76
  122. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +0 -59
  123. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +0 -52
  124. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +0 -125
  125. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +0 -103
  126. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +0 -31
  127. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +0 -31
  128. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +0 -31
  129. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +0 -95
  130. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +0 -62
  131. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +0 -45
  132. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +0 -48
  133. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +0 -55
  134. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +0 -49
  135. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +0 -104
  136. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +0 -45
  137. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +0 -35
  138. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +0 -33
  139. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +0 -46
  140. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +0 -36
  141. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +0 -56
  142. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +0 -46
  143. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +0 -46
  144. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +0 -31
  145. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +0 -2823
  146. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +0 -520
  147. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +0 -214
  148. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +0 -185
  149. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +0 -348
  150. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +0 -679
  151. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +0 -740
  152. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +0 -437
  153. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +0 -67
  154. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +0 -206
  155. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +0 -445
  156. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +0 -2983
  157. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +0 -177
  158. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +0 -270
  159. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +0 -151
  160. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +0 -99
  161. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +0 -215
  162. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +0 -496
  163. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +0 -1079
  164. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +0 -1012
  165. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +0 -255
  166. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +0 -42
  167. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +0 -527
  168. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +0 -12
  169. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +0 -12
  170. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +0 -12
  171. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +0 -12
  172. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +0 -13
  173. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +0 -9636
  174. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +0 -309
  175. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +0 -7844
  176. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +0 -369
  177. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +0 -123
  178. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +0 -23
  179. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +0 -98
  180. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +0 -89
  181. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +0 -66
  182. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +0 -20
  183. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +0 -20
  184. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +0 -331
  185. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +0 -133
  186. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +0 -653
  187. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +0 -653
  188. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +0 -653
  189. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +0 -45
  190. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +0 -45
  191. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +0 -45
  192. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +0 -45
  193. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +0 -45
  194. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +0 -45
  195. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +0 -45
  196. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +0 -45
  197. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +0 -45
  198. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +0 -45
  199. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +0 -45
  200. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +0 -45
  201. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +0 -90
  202. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +0 -45
  203. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +0 -45
  204. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +0 -45
  205. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +0 -45
  206. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +0 -45
  207. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +0 -45
  208. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +0 -130
  209. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +0 -156
  210. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +0 -45
  211. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +0 -45
  212. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +0 -45
  213. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +0 -45
  214. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +0 -45
  215. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +0 -45
  216. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +0 -45
  217. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +0 -45
  218. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +0 -45
  219. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +0 -45
  220. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +0 -45
  221. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +0 -45
  222. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +0 -45
  223. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +0 -45
  224. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +0 -82
  225. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +0 -45
  226. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +0 -45
  227. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +0 -45
  228. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +0 -45
  229. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +0 -45
  230. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +0 -45
  231. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +0 -141
  232. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +0 -131
  233. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +0 -45
  234. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +0 -45
  235. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +0 -318
  236. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +0 -198
  237. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +0 -198
  238. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +0 -8386
  239. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +0 -186
  240. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +0 -3582
  241. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +0 -7049
  242. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +0 -231
  243. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +0 -662
  244. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +0 -84
  245. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +0 -2744
  246. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +0 -8560
  247. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +0 -1614
  248. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +0 -151
  249. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +0 -210
  250. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +0 -94
  251. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +0 -766
  252. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +0 -92
  253. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +0 -199
  254. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +0 -172
  255. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +0 -159
  256. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +0 -211
  257. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +0 -43
  258. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +0 -179
  259. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +0 -150
  260. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +0 -1562
  261. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +0 -655
  262. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +0 -3298
  263. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +0 -312
  264. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +0 -98
  265. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +0 -198
  266. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +0 -922
  267. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +0 -710
  268. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +0 -71
  269. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +0 -1291
  270. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +0 -174
  271. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +0 -406
  272. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +0 -845
  273. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +0 -3180
  274. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +0 -419
  275. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +0 -146
  276. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +0 -5488
  277. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +0 -237
  278. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +0 -110
  279. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +0 -484
  280. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +0 -289
  281. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +0 -1766
  282. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +0 -985
  283. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +0 -2008
  284. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +0 -2515
  285. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +0 -404
  286. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +0 -1881
  287. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +0 -269
  288. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +0 -421
  289. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +0 -2014
  290. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +0 -164
  291. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +0 -1348
  292. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +0 -547
  293. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +0 -810
  294. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +0 -2836
  295. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +0 -332
  296. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
  297. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +0 -3
  298. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +0 -611
  299. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +0 -15
  300. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +0 -11
  301. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +0 -4
  302. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +0 -43
  303. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +0 -7
  304. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +0 -707
  305. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +0 -12
  306. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +0 -17
  307. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +0 -2
  308. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16 +0 -0
  309. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-1 +0 -0
  310. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-2 +0 -0
  311. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-1 +0 -0
  312. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-2 +0 -0
  313. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32 +0 -0
  314. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-1 +0 -0
  315. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-2 +0 -0
  316. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-1 +0 -0
  317. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-2 +0 -0
  318. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved8 +0 -0
  319. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput1 +0 -5306
  320. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +0 -1337
  321. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +0 -135
  322. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +0 -89
  323. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +0 -9
  324. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +0 -329
  325. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +0 -430
  326. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +0 -35
  327. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +0 -296
  328. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +0 -296
  329. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +0 -22
  330. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +0 -3813
  331. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +0 -19
  332. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +0 -16
  333. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +0 -13
  334. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +0 -16
  335. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +0 -77
  336. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +0 -32
  337. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +0 -80
  338. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +0 -95
  339. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +0 -624
  340. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +0 -772
  341. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +0 -1319
  342. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +0 -672
  343. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +0 -4801
  344. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +0 -717
  345. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +0 -121
  346. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +0 -8798
  347. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +0 -2726
  348. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +0 -713
  349. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +0 -713
  350. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +0 -713
  351. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +0 -181
  352. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +0 -21
  353. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +0 -476
  354. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +0 -1269
  355. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +0 -121
  356. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +0 -505
  357. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +0 -1022
  358. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +0 -1019
  359. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +0 -88
  360. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +0 -12484
  361. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +0 -27
  362. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +0 -90
  363. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +0 -90
  364. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +0 -71
  365. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +0 -71
  366. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +0 -42
  367. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +0 -145
  368. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +0 -79
  369. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +0 -148
  370. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +0 -169
  371. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +0 -1094
  372. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +0 -1849
  373. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +0 -2137
  374. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +0 -1473
  375. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +0 -8019
  376. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +0 -1371
  377. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +0 -182
  378. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +0 -91
  379. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +0 -166
  380. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +0 -197
  381. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +0 -23
  382. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +0 -364
  383. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +0 -94
  384. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +0 -264
  385. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +0 -201
@@ -1,255 +0,0 @@
1
- .TH PCREUNICODE 3 "11 November 2012" "PCRE 8.32"
2
- .SH NAME
3
- PCRE - Perl-compatible regular expressions
4
- .SH "UTF-8, UTF-16, UTF-32, AND UNICODE PROPERTY SUPPORT"
5
- .rs
6
- .sp
7
- As well as UTF-8 support, PCRE also supports UTF-16 (from release 8.30) and
8
- UTF-32 (from release 8.32), by means of two additional libraries. They can be
9
- built as well as, or instead of, the 8-bit library.
10
- .
11
- .
12
- .SH "UTF-8 SUPPORT"
13
- .rs
14
- .sp
15
- In order process UTF-8 strings, you must build PCRE's 8-bit library with UTF
16
- support, and, in addition, you must call
17
- .\" HREF
18
- \fBpcre_compile()\fP
19
- .\"
20
- with the PCRE_UTF8 option flag, or the pattern must start with the sequence
21
- (*UTF8) or (*UTF). When either of these is the case, both the pattern and any
22
- subject strings that are matched against it are treated as UTF-8 strings
23
- instead of strings of individual 1-byte characters.
24
- .
25
- .
26
- .SH "UTF-16 AND UTF-32 SUPPORT"
27
- .rs
28
- .sp
29
- In order process UTF-16 or UTF-32 strings, you must build PCRE's 16-bit or
30
- 32-bit library with UTF support, and, in addition, you must call
31
- .\" HREF
32
- \fBpcre16_compile()\fP
33
- .\"
34
- or
35
- .\" HREF
36
- \fBpcre32_compile()\fP
37
- .\"
38
- with the PCRE_UTF16 or PCRE_UTF32 option flag, as appropriate. Alternatively,
39
- the pattern must start with the sequence (*UTF16), (*UTF32), as appropriate, or
40
- (*UTF), which can be used with either library. When UTF mode is set, both the
41
- pattern and any subject strings that are matched against it are treated as
42
- UTF-16 or UTF-32 strings instead of strings of individual 16-bit or 32-bit
43
- characters.
44
- .
45
- .
46
- .SH "UTF SUPPORT OVERHEAD"
47
- .rs
48
- .sp
49
- If you compile PCRE with UTF support, but do not use it at run time, the
50
- library will be a bit bigger, but the additional run time overhead is limited
51
- to testing the PCRE_UTF[8|16|32] flag occasionally, so should not be very big.
52
- .
53
- .
54
- .SH "UNICODE PROPERTY SUPPORT"
55
- .rs
56
- .sp
57
- If PCRE is built with Unicode character property support (which implies UTF
58
- support), the escape sequences \ep{..}, \eP{..}, and \eX can be used.
59
- The available properties that can be tested are limited to the general
60
- category properties such as Lu for an upper case letter or Nd for a decimal
61
- number, the Unicode script names such as Arabic or Han, and the derived
62
- properties Any and L&. Full lists is given in the
63
- .\" HREF
64
- \fBpcrepattern\fP
65
- .\"
66
- and
67
- .\" HREF
68
- \fBpcresyntax\fP
69
- .\"
70
- documentation. Only the short names for properties are supported. For example,
71
- \ep{L} matches a letter. Its Perl synonym, \ep{Letter}, is not supported.
72
- Furthermore, in Perl, many properties may optionally be prefixed by "Is", for
73
- compatibility with Perl 5.6. PCRE does not support this.
74
- .
75
- .
76
- .\" HTML <a name="utf8strings"></a>
77
- .SS "Validity of UTF-8 strings"
78
- .rs
79
- .sp
80
- When you set the PCRE_UTF8 flag, the byte strings passed as patterns and
81
- subjects are (by default) checked for validity on entry to the relevant
82
- functions. The entire string is checked before any other processing takes
83
- place. From release 7.3 of PCRE, the check is according the rules of RFC 3629,
84
- which are themselves derived from the Unicode specification. Earlier releases
85
- of PCRE followed the rules of RFC 2279, which allows the full range of 31-bit
86
- values (0 to 0x7FFFFFFF). The current check allows only values in the range U+0
87
- to U+10FFFF, excluding the surrogate area and the non-characters.
88
- .P
89
- Characters in the "Surrogate Area" of Unicode are reserved for use by UTF-16,
90
- where they are used in pairs to encode codepoints with values greater than
91
- 0xFFFF. The code points that are encoded by UTF-16 pairs are available
92
- independently in the UTF-8 and UTF-32 encodings. (In other words, the whole
93
- surrogate thing is a fudge for UTF-16 which unfortunately messes up UTF-8 and
94
- UTF-32.)
95
- .P
96
- Also excluded are the "Non-Character" code points, which are U+FDD0 to U+FDEF
97
- and the last two code points in each plane, U+??FFFE and U+??FFFF.
98
- .P
99
- If an invalid UTF-8 string is passed to PCRE, an error return is given. At
100
- compile time, the only additional information is the offset to the first byte
101
- of the failing character. The run-time functions \fBpcre_exec()\fP and
102
- \fBpcre_dfa_exec()\fP also pass back this information, as well as a more
103
- detailed reason code if the caller has provided memory in which to do this.
104
- .P
105
- In some situations, you may already know that your strings are valid, and
106
- therefore want to skip these checks in order to improve performance, for
107
- example in the case of a long subject string that is being scanned repeatedly.
108
- If you set the PCRE_NO_UTF8_CHECK flag at compile time or at run time, PCRE
109
- assumes that the pattern or subject it is given (respectively) contains only
110
- valid UTF-8 codes. In this case, it does not diagnose an invalid UTF-8 string.
111
- .P
112
- Note that passing PCRE_NO_UTF8_CHECK to \fBpcre_compile()\fP just disables the
113
- check for the pattern; it does not also apply to subject strings. If you want
114
- to disable the check for a subject string you must pass this option to
115
- \fBpcre_exec()\fP or \fBpcre_dfa_exec()\fP.
116
- .P
117
- If you pass an invalid UTF-8 string when PCRE_NO_UTF8_CHECK is set, the result
118
- is undefined and your program may crash.
119
- .
120
- .
121
- .\" HTML <a name="utf16strings"></a>
122
- .SS "Validity of UTF-16 strings"
123
- .rs
124
- .sp
125
- When you set the PCRE_UTF16 flag, the strings of 16-bit data units that are
126
- passed as patterns and subjects are (by default) checked for validity on entry
127
- to the relevant functions. Values other than those in the surrogate range
128
- U+D800 to U+DFFF are independent code points. Values in the surrogate range
129
- must be used in pairs in the correct manner.
130
- .P
131
- Excluded are the "Non-Character" code points, which are U+FDD0 to U+FDEF
132
- and the last two code points in each plane, U+??FFFE and U+??FFFF.
133
- .P
134
- If an invalid UTF-16 string is passed to PCRE, an error return is given. At
135
- compile time, the only additional information is the offset to the first data
136
- unit of the failing character. The run-time functions \fBpcre16_exec()\fP and
137
- \fBpcre16_dfa_exec()\fP also pass back this information, as well as a more
138
- detailed reason code if the caller has provided memory in which to do this.
139
- .P
140
- In some situations, you may already know that your strings are valid, and
141
- therefore want to skip these checks in order to improve performance. If you set
142
- the PCRE_NO_UTF16_CHECK flag at compile time or at run time, PCRE assumes that
143
- the pattern or subject it is given (respectively) contains only valid UTF-16
144
- sequences. In this case, it does not diagnose an invalid UTF-16 string.
145
- However, if an invalid string is passed, the result is undefined.
146
- .
147
- .
148
- .\" HTML <a name="utf32strings"></a>
149
- .SS "Validity of UTF-32 strings"
150
- .rs
151
- .sp
152
- When you set the PCRE_UTF32 flag, the strings of 32-bit data units that are
153
- passed as patterns and subjects are (by default) checked for validity on entry
154
- to the relevant functions. This check allows only values in the range U+0
155
- to U+10FFFF, excluding the surrogate area U+D800 to U+DFFF, and the
156
- "Non-Character" code points, which are U+FDD0 to U+FDEF and the last two
157
- characters in each plane, U+??FFFE and U+??FFFF.
158
- .P
159
- If an invalid UTF-32 string is passed to PCRE, an error return is given. At
160
- compile time, the only additional information is the offset to the first data
161
- unit of the failing character. The run-time functions \fBpcre32_exec()\fP and
162
- \fBpcre32_dfa_exec()\fP also pass back this information, as well as a more
163
- detailed reason code if the caller has provided memory in which to do this.
164
- .P
165
- In some situations, you may already know that your strings are valid, and
166
- therefore want to skip these checks in order to improve performance. If you set
167
- the PCRE_NO_UTF32_CHECK flag at compile time or at run time, PCRE assumes that
168
- the pattern or subject it is given (respectively) contains only valid UTF-32
169
- sequences. In this case, it does not diagnose an invalid UTF-32 string.
170
- However, if an invalid string is passed, the result is undefined.
171
- .
172
- .
173
- .SS "General comments about UTF modes"
174
- .rs
175
- .sp
176
- 1. Codepoints less than 256 can be specified in patterns by either braced or
177
- unbraced hexadecimal escape sequences (for example, \ex{b3} or \exb3). Larger
178
- values have to use braced sequences.
179
- .P
180
- 2. Octal numbers up to \e777 are recognized, and in UTF-8 mode they match
181
- two-byte characters for values greater than \e177.
182
- .P
183
- 3. Repeat quantifiers apply to complete UTF characters, not to individual
184
- data units, for example: \ex{100}{3}.
185
- .P
186
- 4. The dot metacharacter matches one UTF character instead of a single data
187
- unit.
188
- .P
189
- 5. The escape sequence \eC can be used to match a single byte in UTF-8 mode, or
190
- a single 16-bit data unit in UTF-16 mode, or a single 32-bit data unit in
191
- UTF-32 mode, but its use can lead to some strange effects because it breaks up
192
- multi-unit characters (see the description of \eC in the
193
- .\" HREF
194
- \fBpcrepattern\fP
195
- .\"
196
- documentation). The use of \eC is not supported in the alternative matching
197
- function \fBpcre[16|32]_dfa_exec()\fP, nor is it supported in UTF mode by the
198
- JIT optimization of \fBpcre[16|32]_exec()\fP. If JIT optimization is requested
199
- for a UTF pattern that contains \eC, it will not succeed, and so the matching
200
- will be carried out by the normal interpretive function.
201
- .P
202
- 6. The character escapes \eb, \eB, \ed, \eD, \es, \eS, \ew, and \eW correctly
203
- test characters of any code value, but, by default, the characters that PCRE
204
- recognizes as digits, spaces, or word characters remain the same set as in
205
- non-UTF mode, all with values less than 256. This remains true even when PCRE
206
- is built to include Unicode property support, because to do otherwise would
207
- slow down PCRE in many common cases. Note in particular that this applies to
208
- \eb and \eB, because they are defined in terms of \ew and \eW. If you really
209
- want to test for a wider sense of, say, "digit", you can use explicit Unicode
210
- property tests such as \ep{Nd}. Alternatively, if you set the PCRE_UCP option,
211
- the way that the character escapes work is changed so that Unicode properties
212
- are used to determine which characters match. There are more details in the
213
- section on
214
- .\" HTML <a href="pcrepattern.html#genericchartypes">
215
- .\" </a>
216
- generic character types
217
- .\"
218
- in the
219
- .\" HREF
220
- \fBpcrepattern\fP
221
- .\"
222
- documentation.
223
- .P
224
- 7. Similarly, characters that match the POSIX named character classes are all
225
- low-valued characters, unless the PCRE_UCP option is set.
226
- .P
227
- 8. However, the horizontal and vertical white space matching escapes (\eh, \eH,
228
- \ev, and \eV) do match all the appropriate Unicode characters, whether or not
229
- PCRE_UCP is set.
230
- .P
231
- 9. Case-insensitive matching applies only to characters whose values are less
232
- than 128, unless PCRE is built with Unicode property support. A few Unicode
233
- characters such as Greek sigma have more than two codepoints that are
234
- case-equivalent. Up to and including PCRE release 8.31, only one-to-one case
235
- mappings were supported, but later releases (with Unicode property support) do
236
- treat as case-equivalent all versions of characters such as Greek sigma.
237
- .
238
- .
239
- .SH AUTHOR
240
- .rs
241
- .sp
242
- .nf
243
- Philip Hazel
244
- University Computing Service
245
- Cambridge CB2 3QH, England.
246
- .fi
247
- .
248
- .
249
- .SH REVISION
250
- .rs
251
- .sp
252
- .nf
253
- Last updated: 11 November 2012
254
- Copyright (c) 1997-2012 University of Cambridge.
255
- .fi
@@ -1,42 +0,0 @@
1
- The perltest program
2
- --------------------
3
-
4
- The perltest.pl script tests Perl's regular expressions; it has the same
5
- specification as pcretest, and so can be given identical input, except that
6
- input patterns can be followed only by Perl's lower case modifiers and certain
7
- other pcretest modifiers that are either handled or ignored:
8
-
9
- /+ recognized and handled by perltest
10
- /++ the second + is ignored
11
- /8 recognized and handled by perltest
12
- /J ignored
13
- /K ignored
14
- /W ignored
15
- /S ignored
16
- /SS ignored
17
- /Y ignored
18
-
19
- The pcretest \Y escape in data lines is removed before matching. The data lines
20
- are processed as Perl double-quoted strings, so if they contain " $ or @
21
- characters, these have to be escaped. For this reason, all such characters in
22
- the Perl-compatible testinput1 file are escaped so that they can be used for
23
- perltest as well as for pcretest. The special upper case pattern modifiers such
24
- as /A that pcretest recognizes, and its special data line escapes, are not used
25
- in the Perl-compatible test file. The output should be identical, apart from
26
- the initial identifying banner.
27
-
28
- The perltest.pl script can also test UTF-8 features. It recognizes the special
29
- modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
30
- and testinput6 files can be fed to perltest to run compatible UTF-8 tests.
31
- However, it is necessary to add "use utf8; require Encode" to the script to
32
- make this work correctly. I have not managed to find a way to handle this
33
- automatically.
34
-
35
- The other testinput files are not suitable for feeding to perltest.pl, since
36
- they make use of the special upper case modifiers and escapes that pcretest
37
- uses to test certain features of PCRE. Some of these files also contain
38
- malformed regular expressions, in order to check that PCRE diagnoses them
39
- correctly.
40
-
41
- Philip Hazel
42
- January 2012
@@ -1,527 +0,0 @@
1
- #!/bin/sh
2
- # install - install a program, script, or datafile
3
-
4
- scriptversion=2011-01-19.21; # UTC
5
-
6
- # This originates from X11R5 (mit/util/scripts/install.sh), which was
7
- # later released in X11R6 (xc/config/util/install.sh) with the
8
- # following copyright and license.
9
- #
10
- # Copyright (C) 1994 X Consortium
11
- #
12
- # Permission is hereby granted, free of charge, to any person obtaining a copy
13
- # of this software and associated documentation files (the "Software"), to
14
- # deal in the Software without restriction, including without limitation the
15
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16
- # sell copies of the Software, and to permit persons to whom the Software is
17
- # furnished to do so, subject to the following conditions:
18
- #
19
- # The above copyright notice and this permission notice shall be included in
20
- # all copies or substantial portions of the Software.
21
- #
22
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26
- # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
27
- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- #
29
- # Except as contained in this notice, the name of the X Consortium shall not
30
- # be used in advertising or otherwise to promote the sale, use or other deal-
31
- # ings in this Software without prior written authorization from the X Consor-
32
- # tium.
33
- #
34
- #
35
- # FSF changes to this file are in the public domain.
36
- #
37
- # Calling this script install-sh is preferred over install.sh, to prevent
38
- # `make' implicit rules from creating a file called install from it
39
- # when there is no Makefile.
40
- #
41
- # This script is compatible with the BSD install script, but was written
42
- # from scratch.
43
-
44
- nl='
45
- '
46
- IFS=" "" $nl"
47
-
48
- # set DOITPROG to echo to test this script
49
-
50
- # Don't use :- since 4.3BSD and earlier shells don't like it.
51
- doit=${DOITPROG-}
52
- if test -z "$doit"; then
53
- doit_exec=exec
54
- else
55
- doit_exec=$doit
56
- fi
57
-
58
- # Put in absolute file names if you don't have them in your path;
59
- # or use environment vars.
60
-
61
- chgrpprog=${CHGRPPROG-chgrp}
62
- chmodprog=${CHMODPROG-chmod}
63
- chownprog=${CHOWNPROG-chown}
64
- cmpprog=${CMPPROG-cmp}
65
- cpprog=${CPPROG-cp}
66
- mkdirprog=${MKDIRPROG-mkdir}
67
- mvprog=${MVPROG-mv}
68
- rmprog=${RMPROG-rm}
69
- stripprog=${STRIPPROG-strip}
70
-
71
- posix_glob='?'
72
- initialize_posix_glob='
73
- test "$posix_glob" != "?" || {
74
- if (set -f) 2>/dev/null; then
75
- posix_glob=
76
- else
77
- posix_glob=:
78
- fi
79
- }
80
- '
81
-
82
- posix_mkdir=
83
-
84
- # Desired mode of installed file.
85
- mode=0755
86
-
87
- chgrpcmd=
88
- chmodcmd=$chmodprog
89
- chowncmd=
90
- mvcmd=$mvprog
91
- rmcmd="$rmprog -f"
92
- stripcmd=
93
-
94
- src=
95
- dst=
96
- dir_arg=
97
- dst_arg=
98
-
99
- copy_on_change=false
100
- no_target_directory=
101
-
102
- usage="\
103
- Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
104
- or: $0 [OPTION]... SRCFILES... DIRECTORY
105
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
106
- or: $0 [OPTION]... -d DIRECTORIES...
107
-
108
- In the 1st form, copy SRCFILE to DSTFILE.
109
- In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
110
- In the 4th, create DIRECTORIES.
111
-
112
- Options:
113
- --help display this help and exit.
114
- --version display version info and exit.
115
-
116
- -c (ignored)
117
- -C install only if different (preserve the last data modification time)
118
- -d create directories instead of installing files.
119
- -g GROUP $chgrpprog installed files to GROUP.
120
- -m MODE $chmodprog installed files to MODE.
121
- -o USER $chownprog installed files to USER.
122
- -s $stripprog installed files.
123
- -t DIRECTORY install into DIRECTORY.
124
- -T report an error if DSTFILE is a directory.
125
-
126
- Environment variables override the default commands:
127
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
128
- RMPROG STRIPPROG
129
- "
130
-
131
- while test $# -ne 0; do
132
- case $1 in
133
- -c) ;;
134
-
135
- -C) copy_on_change=true;;
136
-
137
- -d) dir_arg=true;;
138
-
139
- -g) chgrpcmd="$chgrpprog $2"
140
- shift;;
141
-
142
- --help) echo "$usage"; exit $?;;
143
-
144
- -m) mode=$2
145
- case $mode in
146
- *' '* | *' '* | *'
147
- '* | *'*'* | *'?'* | *'['*)
148
- echo "$0: invalid mode: $mode" >&2
149
- exit 1;;
150
- esac
151
- shift;;
152
-
153
- -o) chowncmd="$chownprog $2"
154
- shift;;
155
-
156
- -s) stripcmd=$stripprog;;
157
-
158
- -t) dst_arg=$2
159
- # Protect names problematic for `test' and other utilities.
160
- case $dst_arg in
161
- -* | [=\(\)!]) dst_arg=./$dst_arg;;
162
- esac
163
- shift;;
164
-
165
- -T) no_target_directory=true;;
166
-
167
- --version) echo "$0 $scriptversion"; exit $?;;
168
-
169
- --) shift
170
- break;;
171
-
172
- -*) echo "$0: invalid option: $1" >&2
173
- exit 1;;
174
-
175
- *) break;;
176
- esac
177
- shift
178
- done
179
-
180
- if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
181
- # When -d is used, all remaining arguments are directories to create.
182
- # When -t is used, the destination is already specified.
183
- # Otherwise, the last argument is the destination. Remove it from $@.
184
- for arg
185
- do
186
- if test -n "$dst_arg"; then
187
- # $@ is not empty: it contains at least $arg.
188
- set fnord "$@" "$dst_arg"
189
- shift # fnord
190
- fi
191
- shift # arg
192
- dst_arg=$arg
193
- # Protect names problematic for `test' and other utilities.
194
- case $dst_arg in
195
- -* | [=\(\)!]) dst_arg=./$dst_arg;;
196
- esac
197
- done
198
- fi
199
-
200
- if test $# -eq 0; then
201
- if test -z "$dir_arg"; then
202
- echo "$0: no input file specified." >&2
203
- exit 1
204
- fi
205
- # It's OK to call `install-sh -d' without argument.
206
- # This can happen when creating conditional directories.
207
- exit 0
208
- fi
209
-
210
- if test -z "$dir_arg"; then
211
- do_exit='(exit $ret); exit $ret'
212
- trap "ret=129; $do_exit" 1
213
- trap "ret=130; $do_exit" 2
214
- trap "ret=141; $do_exit" 13
215
- trap "ret=143; $do_exit" 15
216
-
217
- # Set umask so as not to create temps with too-generous modes.
218
- # However, 'strip' requires both read and write access to temps.
219
- case $mode in
220
- # Optimize common cases.
221
- *644) cp_umask=133;;
222
- *755) cp_umask=22;;
223
-
224
- *[0-7])
225
- if test -z "$stripcmd"; then
226
- u_plus_rw=
227
- else
228
- u_plus_rw='% 200'
229
- fi
230
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
231
- *)
232
- if test -z "$stripcmd"; then
233
- u_plus_rw=
234
- else
235
- u_plus_rw=,u+rw
236
- fi
237
- cp_umask=$mode$u_plus_rw;;
238
- esac
239
- fi
240
-
241
- for src
242
- do
243
- # Protect names problematic for `test' and other utilities.
244
- case $src in
245
- -* | [=\(\)!]) src=./$src;;
246
- esac
247
-
248
- if test -n "$dir_arg"; then
249
- dst=$src
250
- dstdir=$dst
251
- test -d "$dstdir"
252
- dstdir_status=$?
253
- else
254
-
255
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
256
- # might cause directories to be created, which would be especially bad
257
- # if $src (and thus $dsttmp) contains '*'.
258
- if test ! -f "$src" && test ! -d "$src"; then
259
- echo "$0: $src does not exist." >&2
260
- exit 1
261
- fi
262
-
263
- if test -z "$dst_arg"; then
264
- echo "$0: no destination specified." >&2
265
- exit 1
266
- fi
267
- dst=$dst_arg
268
-
269
- # If destination is a directory, append the input filename; won't work
270
- # if double slashes aren't ignored.
271
- if test -d "$dst"; then
272
- if test -n "$no_target_directory"; then
273
- echo "$0: $dst_arg: Is a directory" >&2
274
- exit 1
275
- fi
276
- dstdir=$dst
277
- dst=$dstdir/`basename "$src"`
278
- dstdir_status=0
279
- else
280
- # Prefer dirname, but fall back on a substitute if dirname fails.
281
- dstdir=`
282
- (dirname "$dst") 2>/dev/null ||
283
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
284
- X"$dst" : 'X\(//\)[^/]' \| \
285
- X"$dst" : 'X\(//\)$' \| \
286
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
287
- echo X"$dst" |
288
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
289
- s//\1/
290
- q
291
- }
292
- /^X\(\/\/\)[^/].*/{
293
- s//\1/
294
- q
295
- }
296
- /^X\(\/\/\)$/{
297
- s//\1/
298
- q
299
- }
300
- /^X\(\/\).*/{
301
- s//\1/
302
- q
303
- }
304
- s/.*/./; q'
305
- `
306
-
307
- test -d "$dstdir"
308
- dstdir_status=$?
309
- fi
310
- fi
311
-
312
- obsolete_mkdir_used=false
313
-
314
- if test $dstdir_status != 0; then
315
- case $posix_mkdir in
316
- '')
317
- # Create intermediate dirs using mode 755 as modified by the umask.
318
- # This is like FreeBSD 'install' as of 1997-10-28.
319
- umask=`umask`
320
- case $stripcmd.$umask in
321
- # Optimize common cases.
322
- *[2367][2367]) mkdir_umask=$umask;;
323
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
324
-
325
- *[0-7])
326
- mkdir_umask=`expr $umask + 22 \
327
- - $umask % 100 % 40 + $umask % 20 \
328
- - $umask % 10 % 4 + $umask % 2
329
- `;;
330
- *) mkdir_umask=$umask,go-w;;
331
- esac
332
-
333
- # With -d, create the new directory with the user-specified mode.
334
- # Otherwise, rely on $mkdir_umask.
335
- if test -n "$dir_arg"; then
336
- mkdir_mode=-m$mode
337
- else
338
- mkdir_mode=
339
- fi
340
-
341
- posix_mkdir=false
342
- case $umask in
343
- *[123567][0-7][0-7])
344
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
345
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
346
- ;;
347
- *)
348
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
349
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
350
-
351
- if (umask $mkdir_umask &&
352
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
353
- then
354
- if test -z "$dir_arg" || {
355
- # Check for POSIX incompatibilities with -m.
356
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357
- # other-writeable bit of parent directory when it shouldn't.
358
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
360
- case $ls_ld_tmpdir in
361
- d????-?r-*) different_mode=700;;
362
- d????-?--*) different_mode=755;;
363
- *) false;;
364
- esac &&
365
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
366
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
367
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
368
- }
369
- }
370
- then posix_mkdir=:
371
- fi
372
- rmdir "$tmpdir/d" "$tmpdir"
373
- else
374
- # Remove any dirs left behind by ancient mkdir implementations.
375
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
376
- fi
377
- trap '' 0;;
378
- esac;;
379
- esac
380
-
381
- if
382
- $posix_mkdir && (
383
- umask $mkdir_umask &&
384
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
385
- )
386
- then :
387
- else
388
-
389
- # The umask is ridiculous, or mkdir does not conform to POSIX,
390
- # or it failed possibly due to a race condition. Create the
391
- # directory the slow way, step by step, checking for races as we go.
392
-
393
- case $dstdir in
394
- /*) prefix='/';;
395
- [-=\(\)!]*) prefix='./';;
396
- *) prefix='';;
397
- esac
398
-
399
- eval "$initialize_posix_glob"
400
-
401
- oIFS=$IFS
402
- IFS=/
403
- $posix_glob set -f
404
- set fnord $dstdir
405
- shift
406
- $posix_glob set +f
407
- IFS=$oIFS
408
-
409
- prefixes=
410
-
411
- for d
412
- do
413
- test X"$d" = X && continue
414
-
415
- prefix=$prefix$d
416
- if test -d "$prefix"; then
417
- prefixes=
418
- else
419
- if $posix_mkdir; then
420
- (umask=$mkdir_umask &&
421
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
422
- # Don't fail if two instances are running concurrently.
423
- test -d "$prefix" || exit 1
424
- else
425
- case $prefix in
426
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
427
- *) qprefix=$prefix;;
428
- esac
429
- prefixes="$prefixes '$qprefix'"
430
- fi
431
- fi
432
- prefix=$prefix/
433
- done
434
-
435
- if test -n "$prefixes"; then
436
- # Don't fail if two instances are running concurrently.
437
- (umask $mkdir_umask &&
438
- eval "\$doit_exec \$mkdirprog $prefixes") ||
439
- test -d "$dstdir" || exit 1
440
- obsolete_mkdir_used=true
441
- fi
442
- fi
443
- fi
444
-
445
- if test -n "$dir_arg"; then
446
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
447
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
448
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
449
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
450
- else
451
-
452
- # Make a couple of temp file names in the proper directory.
453
- dsttmp=$dstdir/_inst.$$_
454
- rmtmp=$dstdir/_rm.$$_
455
-
456
- # Trap to clean up those temp files at exit.
457
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
458
-
459
- # Copy the file name to the temp name.
460
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
461
-
462
- # and set any options; do chmod last to preserve setuid bits.
463
- #
464
- # If any of these fail, we abort the whole thing. If we want to
465
- # ignore errors from any of these, just make sure not to ignore
466
- # errors from the above "$doit $cpprog $src $dsttmp" command.
467
- #
468
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
469
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
470
- { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
471
- { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
472
-
473
- # If -C, don't bother to copy if it wouldn't change the file.
474
- if $copy_on_change &&
475
- old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
476
- new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
477
-
478
- eval "$initialize_posix_glob" &&
479
- $posix_glob set -f &&
480
- set X $old && old=:$2:$4:$5:$6 &&
481
- set X $new && new=:$2:$4:$5:$6 &&
482
- $posix_glob set +f &&
483
-
484
- test "$old" = "$new" &&
485
- $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
486
- then
487
- rm -f "$dsttmp"
488
- else
489
- # Rename the file to the real destination.
490
- $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
491
-
492
- # The rename failed, perhaps because mv can't rename something else
493
- # to itself, or perhaps because mv is so ancient that it does not
494
- # support -f.
495
- {
496
- # Now remove or move aside any old file at destination location.
497
- # We try this two ways since rm can't unlink itself on some
498
- # systems and the destination file might be busy for other
499
- # reasons. In this case, the final cleanup might fail but the new
500
- # file should still install successfully.
501
- {
502
- test ! -f "$dst" ||
503
- $doit $rmcmd -f "$dst" 2>/dev/null ||
504
- { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
505
- { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
506
- } ||
507
- { echo "$0: cannot unlink or rename $dst" >&2
508
- (exit 1); exit 1
509
- }
510
- } &&
511
-
512
- # Now rename the file to the real destination.
513
- $doit $mvcmd "$dsttmp" "$dst"
514
- }
515
- fi || exit 1
516
-
517
- trap '' 0
518
- fi
519
- done
520
-
521
- # Local variables:
522
- # eval: (add-hook 'write-file-hooks 'time-stamp)
523
- # time-stamp-start: "scriptversion="
524
- # time-stamp-format: "%:y-%02m-%02d.%02H"
525
- # time-stamp-time-zone: "UTC"
526
- # time-stamp-end: "; # UTC"
527
- # End: