nutcracker 0.2.4.5 → 0.2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. data/ext/nutcracker/ChangeLog +0 -0
  2. data/ext/nutcracker/LICENSE +0 -0
  3. data/ext/nutcracker/Makefile.am +0 -0
  4. data/ext/nutcracker/Makefile.in +190 -82
  5. data/ext/nutcracker/NOTICE +0 -0
  6. data/ext/nutcracker/README.md +0 -0
  7. data/ext/nutcracker/aclocal.m4 +231 -122
  8. data/ext/nutcracker/conf/nutcracker.leaf.yml +0 -0
  9. data/ext/nutcracker/conf/nutcracker.root.yml +0 -0
  10. data/ext/nutcracker/conf/nutcracker.yml +0 -0
  11. data/ext/nutcracker/config.h.in +0 -15
  12. data/ext/nutcracker/config/config.guess +278 -248
  13. data/ext/nutcracker/config/config.sub +234 -77
  14. data/ext/nutcracker/config/depcomp +143 -39
  15. data/ext/nutcracker/config/install-sh +136 -116
  16. data/ext/nutcracker/config/ltmain.sh +1704 -788
  17. data/ext/nutcracker/config/missing +29 -65
  18. data/ext/nutcracker/configure +1998 -1052
  19. data/ext/nutcracker/configure.ac +2 -34
  20. data/ext/nutcracker/contrib/Makefile.am +0 -0
  21. data/ext/nutcracker/contrib/Makefile.in +120 -47
  22. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  23. data/ext/nutcracker/extconf.rb +5 -2
  24. data/ext/nutcracker/m4/libtool.m4 +960 -396
  25. data/ext/nutcracker/m4/ltoptions.m4 +17 -2
  26. data/ext/nutcracker/m4/ltversion.m4 +6 -6
  27. data/ext/nutcracker/notes/c-styleguide.txt +0 -0
  28. data/ext/nutcracker/notes/debug.txt +0 -0
  29. data/ext/nutcracker/notes/memcache.txt +0 -0
  30. data/ext/nutcracker/notes/recommendation.md +0 -0
  31. data/ext/nutcracker/notes/redis.md +0 -0
  32. data/ext/nutcracker/notes/socket.txt +0 -0
  33. data/ext/nutcracker/scripts/nutcracker.init +0 -0
  34. data/ext/nutcracker/scripts/nutcracker.spec +0 -0
  35. data/ext/nutcracker/scripts/redis-check.py +0 -0
  36. data/ext/nutcracker/src/Makefile.am +1 -1
  37. data/ext/nutcracker/src/Makefile.in +167 -81
  38. data/ext/nutcracker/src/hashkit/Makefile.am +0 -0
  39. data/ext/nutcracker/src/hashkit/Makefile.in +72 -37
  40. data/ext/nutcracker/src/hashkit/nc_crc16.c +0 -0
  41. data/ext/nutcracker/src/hashkit/nc_crc32.c +0 -0
  42. data/ext/nutcracker/src/hashkit/nc_fnv.c +0 -0
  43. data/ext/nutcracker/src/hashkit/nc_hashkit.h +0 -0
  44. data/ext/nutcracker/src/hashkit/nc_hsieh.c +0 -0
  45. data/ext/nutcracker/src/hashkit/nc_jenkins.c +0 -0
  46. data/ext/nutcracker/src/hashkit/nc_ketama.c +0 -0
  47. data/ext/nutcracker/src/hashkit/nc_md5.c +0 -0
  48. data/ext/nutcracker/src/hashkit/nc_modula.c +0 -0
  49. data/ext/nutcracker/src/hashkit/nc_murmur.c +0 -0
  50. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +0 -0
  51. data/ext/nutcracker/src/hashkit/nc_random.c +0 -0
  52. data/ext/nutcracker/src/nc.c +0 -0
  53. data/ext/nutcracker/src/nc_array.c +0 -0
  54. data/ext/nutcracker/src/nc_array.h +0 -0
  55. data/ext/nutcracker/src/nc_client.c +0 -0
  56. data/ext/nutcracker/src/nc_client.h +0 -0
  57. data/ext/nutcracker/src/nc_conf.c +0 -0
  58. data/ext/nutcracker/src/nc_conf.h +0 -0
  59. data/ext/nutcracker/src/nc_connection.c +0 -0
  60. data/ext/nutcracker/src/nc_connection.h +0 -0
  61. data/ext/nutcracker/src/nc_core.c +26 -29
  62. data/ext/nutcracker/src/nc_core.h +5 -13
  63. data/ext/nutcracker/src/{nc_epoll.c → nc_event.c} +30 -94
  64. data/ext/nutcracker/src/nc_event.h +13 -33
  65. data/ext/nutcracker/src/nc_log.c +0 -0
  66. data/ext/nutcracker/src/nc_log.h +0 -0
  67. data/ext/nutcracker/src/nc_mbuf.c +0 -0
  68. data/ext/nutcracker/src/nc_mbuf.h +0 -0
  69. data/ext/nutcracker/src/nc_message.c +0 -0
  70. data/ext/nutcracker/src/nc_message.h +0 -0
  71. data/ext/nutcracker/src/nc_proxy.c +8 -8
  72. data/ext/nutcracker/src/nc_proxy.h +0 -0
  73. data/ext/nutcracker/src/nc_queue.h +0 -0
  74. data/ext/nutcracker/src/nc_rbtree.c +0 -0
  75. data/ext/nutcracker/src/nc_rbtree.h +0 -0
  76. data/ext/nutcracker/src/nc_request.c +3 -3
  77. data/ext/nutcracker/src/nc_response.c +6 -4
  78. data/ext/nutcracker/src/nc_server.c +5 -5
  79. data/ext/nutcracker/src/nc_server.h +0 -0
  80. data/ext/nutcracker/src/nc_signal.c +0 -0
  81. data/ext/nutcracker/src/nc_signal.h +0 -0
  82. data/ext/nutcracker/src/nc_stats.c +21 -16
  83. data/ext/nutcracker/src/nc_stats.h +4 -3
  84. data/ext/nutcracker/src/nc_string.c +0 -0
  85. data/ext/nutcracker/src/nc_string.h +0 -0
  86. data/ext/nutcracker/src/nc_util.c +0 -16
  87. data/ext/nutcracker/src/nc_util.h +0 -1
  88. data/ext/nutcracker/src/proto/Makefile.am +0 -0
  89. data/ext/nutcracker/src/proto/Makefile.in +72 -37
  90. data/ext/nutcracker/src/proto/nc_memcache.c +0 -0
  91. data/ext/nutcracker/src/proto/nc_proto.h +0 -0
  92. data/ext/nutcracker/src/proto/nc_redis.c +0 -0
  93. data/lib/nutcracker/version.rb +1 -1
  94. metadata +3 -200
  95. data/ext/nutcracker/Makefile +0 -643
  96. data/ext/nutcracker/autom4te.cache/output.0 +0 -18664
  97. data/ext/nutcracker/autom4te.cache/output.1 +0 -18664
  98. data/ext/nutcracker/autom4te.cache/output.2 +0 -18664
  99. data/ext/nutcracker/autom4te.cache/requests +0 -494
  100. data/ext/nutcracker/autom4te.cache/traces.0 +0 -2415
  101. data/ext/nutcracker/autom4te.cache/traces.1 +0 -945
  102. data/ext/nutcracker/autom4te.cache/traces.2 +0 -2415
  103. data/ext/nutcracker/config.h +0 -332
  104. data/ext/nutcracker/config.log +0 -2684
  105. data/ext/nutcracker/config.status +0 -2317
  106. data/ext/nutcracker/contrib/Makefile +0 -494
  107. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile +0 -736
  108. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +0 -13102
  109. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +0 -13085
  110. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +0 -13085
  111. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +0 -476
  112. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +0 -2339
  113. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +0 -545
  114. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +0 -2339
  115. data/ext/nutcracker/contrib/yaml-0.1.4/config.h +0 -81
  116. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in~ +0 -80
  117. data/ext/nutcracker/contrib/yaml-0.1.4/config.log +0 -688
  118. data/ext/nutcracker/contrib/yaml-0.1.4/config.status +0 -2032
  119. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/annotated.html +0 -51
  120. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/bc_s.png +0 -0
  121. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/classes.html +0 -41
  122. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/closed.png +0 -0
  123. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.css +0 -656
  124. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.png +0 -0
  125. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/files.html +0 -40
  126. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions.html +0 -91
  127. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x62.html +0 -84
  128. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x63.html +0 -87
  129. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x64.html +0 -83
  130. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x65.html +0 -110
  131. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x66.html +0 -79
  132. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x68.html +0 -80
  133. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x69.html +0 -92
  134. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6b.html +0 -71
  135. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6c.html +0 -88
  136. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6d.html +0 -96
  137. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6e.html +0 -71
  138. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6f.html +0 -80
  139. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x70.html +0 -100
  140. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x71.html +0 -71
  141. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x72.html +0 -87
  142. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x73.html +0 -163
  143. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x74.html +0 -115
  144. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x75.html +0 -71
  145. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x76.html +0 -80
  146. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x77.html +0 -77
  147. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars.html +0 -91
  148. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x62.html +0 -84
  149. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x63.html +0 -87
  150. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x64.html +0 -83
  151. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x65.html +0 -110
  152. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x66.html +0 -79
  153. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x68.html +0 -80
  154. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x69.html +0 -92
  155. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6b.html +0 -71
  156. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6c.html +0 -88
  157. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6d.html +0 -96
  158. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6e.html +0 -71
  159. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6f.html +0 -80
  160. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x70.html +0 -100
  161. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x71.html +0 -71
  162. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x72.html +0 -87
  163. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x73.html +0 -163
  164. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x74.html +0 -115
  165. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x75.html +0 -71
  166. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x76.html +0 -80
  167. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x77.html +0 -77
  168. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals.html +0 -667
  169. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_defs.html +0 -81
  170. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_enum.html +0 -78
  171. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_eval.html +0 -373
  172. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_func.html +0 -196
  173. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_type.html +0 -126
  174. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__basic.html +0 -320
  175. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__emitter.html +0 -819
  176. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__events.html +0 -664
  177. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__export.html +0 -60
  178. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__nodes.html +0 -795
  179. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__parser.html +0 -606
  180. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__styles.html +0 -222
  181. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__tokens.html +0 -246
  182. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__version.html +0 -106
  183. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/index.html +0 -31
  184. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/modules.html +0 -42
  185. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_f.png +0 -0
  186. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_h.png +0 -0
  187. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/open.png +0 -0
  188. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__alias__data__s.html +0 -108
  189. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__document__s.html +0 -235
  190. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__emitter__s.html +0 -1300
  191. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__event__s.html +0 -496
  192. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__mark__s.html +0 -108
  193. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__pair__s.html +0 -91
  194. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__s.html +0 -420
  195. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__parser__s.html +0 -1229
  196. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__simple__key__s.html +0 -97
  197. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__tag__directive__s.html +0 -91
  198. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__token__s.html +0 -413
  199. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__version__directive__s.html +0 -91
  200. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_a.png +0 -0
  201. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_b.png +0 -0
  202. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_h.png +0 -0
  203. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_s.png +0 -0
  204. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tabs.css +0 -59
  205. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/yaml_8h.html +0 -525
  206. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.am +0 -17
  207. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.in +0 -470
  208. data/ext/nutcracker/contrib/yaml-0.1.4/libtool +0 -8890
  209. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile +0 -484
  210. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.lo +0 -12
  211. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.o +0 -0
  212. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.lo +0 -12
  213. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.o +0 -0
  214. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.lo +0 -12
  215. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.o +0 -0
  216. data/ext/nutcracker/contrib/yaml-0.1.4/src/libyaml.la +0 -41
  217. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.lo +0 -12
  218. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.o +0 -0
  219. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.lo +0 -12
  220. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.o +0 -0
  221. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.lo +0 -12
  222. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.o +0 -0
  223. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.lo +0 -12
  224. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.o +0 -0
  225. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.lo +0 -12
  226. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.o +0 -0
  227. data/ext/nutcracker/contrib/yaml-0.1.4/stamp-h1 +0 -1
  228. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile +0 -675
  229. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor +0 -0
  230. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt +0 -0
  231. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.o +0 -0
  232. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.o +0 -0
  233. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter +0 -0
  234. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt +0 -0
  235. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.o +0 -0
  236. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.o +0 -0
  237. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper +0 -0
  238. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.o +0 -0
  239. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter +0 -0
  240. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.o +0 -0
  241. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader +0 -0
  242. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.o +0 -0
  243. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser +0 -0
  244. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.o +0 -0
  245. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner +0 -0
  246. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.o +0 -0
  247. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc +0 -10
  248. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc.in +0 -10
  249. data/ext/nutcracker/exconf.rb +0 -0
  250. data/ext/nutcracker/libtool +0 -9403
  251. data/ext/nutcracker/src/Makefile +0 -647
  252. data/ext/nutcracker/src/hashkit/Makefile +0 -476
  253. data/ext/nutcracker/src/hashkit/libhashkit.a +0 -0
  254. data/ext/nutcracker/src/hashkit/nc_crc16.o +0 -0
  255. data/ext/nutcracker/src/hashkit/nc_crc32.o +0 -0
  256. data/ext/nutcracker/src/hashkit/nc_fnv.o +0 -0
  257. data/ext/nutcracker/src/hashkit/nc_hsieh.o +0 -0
  258. data/ext/nutcracker/src/hashkit/nc_jenkins.o +0 -0
  259. data/ext/nutcracker/src/hashkit/nc_ketama.o +0 -0
  260. data/ext/nutcracker/src/hashkit/nc_md5.o +0 -0
  261. data/ext/nutcracker/src/hashkit/nc_modula.o +0 -0
  262. data/ext/nutcracker/src/hashkit/nc_murmur.o +0 -0
  263. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.o +0 -0
  264. data/ext/nutcracker/src/hashkit/nc_random.o +0 -0
  265. data/ext/nutcracker/src/nc.o +0 -0
  266. data/ext/nutcracker/src/nc_array.o +0 -0
  267. data/ext/nutcracker/src/nc_client.o +0 -0
  268. data/ext/nutcracker/src/nc_conf.o +0 -0
  269. data/ext/nutcracker/src/nc_connection.o +0 -0
  270. data/ext/nutcracker/src/nc_core.o +0 -0
  271. data/ext/nutcracker/src/nc_epoll.o +0 -0
  272. data/ext/nutcracker/src/nc_kqueue.c +0 -296
  273. data/ext/nutcracker/src/nc_kqueue.o +0 -0
  274. data/ext/nutcracker/src/nc_log.o +0 -0
  275. data/ext/nutcracker/src/nc_mbuf.o +0 -0
  276. data/ext/nutcracker/src/nc_message.o +0 -0
  277. data/ext/nutcracker/src/nc_proxy.o +0 -0
  278. data/ext/nutcracker/src/nc_rbtree.o +0 -0
  279. data/ext/nutcracker/src/nc_request.o +0 -0
  280. data/ext/nutcracker/src/nc_response.o +0 -0
  281. data/ext/nutcracker/src/nc_server.o +0 -0
  282. data/ext/nutcracker/src/nc_signal.o +0 -0
  283. data/ext/nutcracker/src/nc_stats.o +0 -0
  284. data/ext/nutcracker/src/nc_string.o +0 -0
  285. data/ext/nutcracker/src/nc_util.o +0 -0
  286. data/ext/nutcracker/src/nutcracker +0 -0
  287. data/ext/nutcracker/src/proto/Makefile +0 -454
  288. data/ext/nutcracker/src/proto/libproto.a +0 -0
  289. data/ext/nutcracker/src/proto/nc_memcache.o +0 -0
  290. data/ext/nutcracker/src/proto/nc_redis.o +0 -0
  291. data/ext/nutcracker/stamp-h1 +0 -1
@@ -1,10 +1,10 @@
1
1
  #! /bin/sh
2
2
  # depcomp - compile a program generating dependencies as side-effects
3
3
 
4
- scriptversion=2006-10-15.18
4
+ scriptversion=2011-12-04.11; # UTC
5
5
 
6
- # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
7
- # Foundation, Inc.
6
+ # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
7
+ # 2011 Free Software Foundation, Inc.
8
8
 
9
9
  # This program is free software; you can redistribute it and/or modify
10
10
  # it under the terms of the GNU General Public License as published by
@@ -17,9 +17,7 @@ scriptversion=2006-10-15.18
17
17
  # GNU General Public License for more details.
18
18
 
19
19
  # You should have received a copy of the GNU General Public License
20
- # along with this program; if not, write to the Free Software
21
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
- # 02110-1301, USA.
20
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
23
21
 
24
22
  # As a special exception to the GNU General Public License, if you
25
23
  # distribute this file as part of a program that contains a
@@ -46,7 +44,7 @@ Environment variables:
46
44
  object Object file output by `PROGRAMS ARGS'.
47
45
  DEPDIR directory where to store dependencies.
48
46
  depfile Dependency file to output.
49
- tmpdepfile Temporary file to use when outputing dependencies.
47
+ tmpdepfile Temporary file to use when outputting dependencies.
50
48
  libtool Whether libtool is used (yes/no).
51
49
 
52
50
  Report bugs to <bug-automake@gnu.org>.
@@ -87,6 +85,23 @@ if test "$depmode" = dashXmstdout; then
87
85
  depmode=dashmstdout
88
86
  fi
89
87
 
88
+ cygpath_u="cygpath -u -f -"
89
+ if test "$depmode" = msvcmsys; then
90
+ # This is just like msvisualcpp but w/o cygpath translation.
91
+ # Just convert the backslash-escaped backslashes to single forward
92
+ # slashes to satisfy depend.m4
93
+ cygpath_u='sed s,\\\\,/,g'
94
+ depmode=msvisualcpp
95
+ fi
96
+
97
+ if test "$depmode" = msvc7msys; then
98
+ # This is just like msvc7 but w/o cygpath translation.
99
+ # Just convert the backslash-escaped backslashes to single forward
100
+ # slashes to satisfy depend.m4
101
+ cygpath_u='sed s,\\\\,/,g'
102
+ depmode=msvc7
103
+ fi
104
+
90
105
  case "$depmode" in
91
106
  gcc3)
92
107
  ## gcc 3 implements dependency tracking that does exactly what
@@ -151,10 +166,12 @@ gcc)
151
166
  ' < "$tmpdepfile" |
152
167
  ## Some versions of gcc put a space before the `:'. On the theory
153
168
  ## that the space means something, we add a space to the output as
154
- ## well.
169
+ ## well. hp depmode also adds that space, but also prefixes the VPATH
170
+ ## to the object. Take care to not repeat it in the output.
155
171
  ## Some versions of the HPUX 10.20 sed can't process this invocation
156
172
  ## correctly. Breaking it into two sed invocations is a workaround.
157
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
173
+ sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
174
+ | sed -e 's/$/ :/' >> "$depfile"
158
175
  rm -f "$tmpdepfile"
159
176
  ;;
160
177
 
@@ -192,14 +209,14 @@ sgi)
192
209
  ' < "$tmpdepfile" \
193
210
  | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
194
211
  tr '
195
- ' ' ' >> $depfile
196
- echo >> $depfile
212
+ ' ' ' >> "$depfile"
213
+ echo >> "$depfile"
197
214
 
198
215
  # The second pass generates a dummy entry for each header file.
199
216
  tr ' ' '
200
217
  ' < "$tmpdepfile" \
201
218
  | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
202
- >> $depfile
219
+ >> "$depfile"
203
220
  else
204
221
  # The sourcefile does not contain any dependencies, so just
205
222
  # store a dummy comment line, to avoid errors with the Makefile
@@ -215,34 +232,39 @@ aix)
215
232
  # current directory. Also, the AIX compiler puts `$object:' at the
216
233
  # start of each line; $object doesn't have directory information.
217
234
  # Version 6 uses the directory in both cases.
218
- stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
219
- tmpdepfile="$stripped.u"
235
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
236
+ test "x$dir" = "x$object" && dir=
237
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
220
238
  if test "$libtool" = yes; then
239
+ tmpdepfile1=$dir$base.u
240
+ tmpdepfile2=$base.u
241
+ tmpdepfile3=$dir.libs/$base.u
221
242
  "$@" -Wc,-M
222
243
  else
244
+ tmpdepfile1=$dir$base.u
245
+ tmpdepfile2=$dir$base.u
246
+ tmpdepfile3=$dir$base.u
223
247
  "$@" -M
224
248
  fi
225
249
  stat=$?
226
250
 
227
- if test -f "$tmpdepfile"; then :
228
- else
229
- stripped=`echo "$stripped" | sed 's,^.*/,,'`
230
- tmpdepfile="$stripped.u"
231
- fi
232
-
233
251
  if test $stat -eq 0; then :
234
252
  else
235
- rm -f "$tmpdepfile"
253
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
236
254
  exit $stat
237
255
  fi
238
256
 
257
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
258
+ do
259
+ test -f "$tmpdepfile" && break
260
+ done
239
261
  if test -f "$tmpdepfile"; then
240
- outname="$stripped.o"
241
262
  # Each line is of the form `foo.o: dependent.h'.
242
263
  # Do two passes, one to just change these to
243
264
  # `$object: dependent.h' and one to simply `dependent.h:'.
244
- sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
245
- sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
265
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
266
+ # That's a tab and a space in the [].
267
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
246
268
  else
247
269
  # The sourcefile does not contain any dependencies, so just
248
270
  # store a dummy comment line, to avoid errors with the Makefile
@@ -323,7 +345,12 @@ hp2)
323
345
  if test -f "$tmpdepfile"; then
324
346
  sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
325
347
  # Add `dependent.h:' lines.
326
- sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
348
+ sed -ne '2,${
349
+ s/^ *//
350
+ s/ \\*$//
351
+ s/$/:/
352
+ p
353
+ }' "$tmpdepfile" >> "$depfile"
327
354
  else
328
355
  echo "#dummy" > "$depfile"
329
356
  fi
@@ -388,6 +415,52 @@ tru64)
388
415
  rm -f "$tmpdepfile"
389
416
  ;;
390
417
 
418
+ msvc7)
419
+ if test "$libtool" = yes; then
420
+ showIncludes=-Wc,-showIncludes
421
+ else
422
+ showIncludes=-showIncludes
423
+ fi
424
+ "$@" $showIncludes > "$tmpdepfile"
425
+ stat=$?
426
+ grep -v '^Note: including file: ' "$tmpdepfile"
427
+ if test "$stat" = 0; then :
428
+ else
429
+ rm -f "$tmpdepfile"
430
+ exit $stat
431
+ fi
432
+ rm -f "$depfile"
433
+ echo "$object : \\" > "$depfile"
434
+ # The first sed program below extracts the file names and escapes
435
+ # backslashes for cygpath. The second sed program outputs the file
436
+ # name when reading, but also accumulates all include files in the
437
+ # hold buffer in order to output them again at the end. This only
438
+ # works with sed implementations that can handle large buffers.
439
+ sed < "$tmpdepfile" -n '
440
+ /^Note: including file: *\(.*\)/ {
441
+ s//\1/
442
+ s/\\/\\\\/g
443
+ p
444
+ }' | $cygpath_u | sort -u | sed -n '
445
+ s/ /\\ /g
446
+ s/\(.*\)/ \1 \\/p
447
+ s/.\(.*\) \\/\1:/
448
+ H
449
+ $ {
450
+ s/.*/ /
451
+ G
452
+ p
453
+ }' >> "$depfile"
454
+ rm -f "$tmpdepfile"
455
+ ;;
456
+
457
+ msvc7msys)
458
+ # This case exists only to let depend.m4 do its work. It works by
459
+ # looking at the text of this script. This case will never be run,
460
+ # since it is checked for above.
461
+ exit 1
462
+ ;;
463
+
391
464
  #nosideeffect)
392
465
  # This comment above is used by automake to tell side-effect
393
466
  # dependency tracking mechanisms from slower ones.
@@ -399,7 +472,7 @@ dashmstdout)
399
472
 
400
473
  # Remove the call to Libtool.
401
474
  if test "$libtool" = yes; then
402
- while test $1 != '--mode=compile'; do
475
+ while test "X$1" != 'X--mode=compile'; do
403
476
  shift
404
477
  done
405
478
  shift
@@ -450,36 +523,45 @@ makedepend)
450
523
  "$@" || exit $?
451
524
  # Remove any Libtool call
452
525
  if test "$libtool" = yes; then
453
- while test $1 != '--mode=compile'; do
526
+ while test "X$1" != 'X--mode=compile'; do
454
527
  shift
455
528
  done
456
529
  shift
457
530
  fi
458
531
  # X makedepend
459
532
  shift
460
- cleared=no
461
- for arg in "$@"; do
533
+ cleared=no eat=no
534
+ for arg
535
+ do
462
536
  case $cleared in
463
537
  no)
464
538
  set ""; shift
465
539
  cleared=yes ;;
466
540
  esac
541
+ if test $eat = yes; then
542
+ eat=no
543
+ continue
544
+ fi
467
545
  case "$arg" in
468
546
  -D*|-I*)
469
547
  set fnord "$@" "$arg"; shift ;;
470
548
  # Strip any option that makedepend may not understand. Remove
471
549
  # the object too, otherwise makedepend will parse it as a source file.
550
+ -arch)
551
+ eat=yes ;;
472
552
  -*|$object)
473
553
  ;;
474
554
  *)
475
555
  set fnord "$@" "$arg"; shift ;;
476
556
  esac
477
557
  done
478
- obj_suffix="`echo $object | sed 's/^.*\././'`"
558
+ obj_suffix=`echo "$object" | sed 's/^.*\././'`
479
559
  touch "$tmpdepfile"
480
560
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
481
561
  rm -f "$depfile"
482
- cat < "$tmpdepfile" > "$depfile"
562
+ # makedepend may prepend the VPATH from the source file name to the object.
563
+ # No need to regex-escape $object, excess matching of '.' is harmless.
564
+ sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
483
565
  sed '1,2d' "$tmpdepfile" | tr ' ' '
484
566
  ' | \
485
567
  ## Some versions of the HPUX 10.20 sed can't process this invocation
@@ -495,7 +577,7 @@ cpp)
495
577
 
496
578
  # Remove the call to Libtool.
497
579
  if test "$libtool" = yes; then
498
- while test $1 != '--mode=compile'; do
580
+ while test "X$1" != 'X--mode=compile'; do
499
581
  shift
500
582
  done
501
583
  shift
@@ -533,13 +615,27 @@ cpp)
533
615
 
534
616
  msvisualcpp)
535
617
  # Important note: in order to support this mode, a compiler *must*
536
- # always write the preprocessed file to stdout, regardless of -o,
537
- # because we must use -o when running libtool.
618
+ # always write the preprocessed file to stdout.
538
619
  "$@" || exit $?
620
+
621
+ # Remove the call to Libtool.
622
+ if test "$libtool" = yes; then
623
+ while test "X$1" != 'X--mode=compile'; do
624
+ shift
625
+ done
626
+ shift
627
+ fi
628
+
539
629
  IFS=" "
540
630
  for arg
541
631
  do
542
632
  case "$arg" in
633
+ -o)
634
+ shift
635
+ ;;
636
+ $object)
637
+ shift
638
+ ;;
543
639
  "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
544
640
  set fnord "$@"
545
641
  shift
@@ -552,16 +648,23 @@ msvisualcpp)
552
648
  ;;
553
649
  esac
554
650
  done
555
- "$@" -E |
556
- sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
651
+ "$@" -E 2>/dev/null |
652
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
557
653
  rm -f "$depfile"
558
654
  echo "$object : \\" > "$depfile"
559
- . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
655
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
560
656
  echo " " >> "$depfile"
561
- . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
657
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
562
658
  rm -f "$tmpdepfile"
563
659
  ;;
564
660
 
661
+ msvcmsys)
662
+ # This case exists only to let depend.m4 do its work. It works by
663
+ # looking at the text of this script. This case will never be run,
664
+ # since it is checked for above.
665
+ exit 1
666
+ ;;
667
+
565
668
  none)
566
669
  exec "$@"
567
670
  ;;
@@ -580,5 +683,6 @@ exit 0
580
683
  # eval: (add-hook 'write-file-hooks 'time-stamp)
581
684
  # time-stamp-start: "scriptversion="
582
685
  # time-stamp-format: "%:y-%02m-%02d.%02H"
583
- # time-stamp-end: "$"
686
+ # time-stamp-time-zone: "UTC"
687
+ # time-stamp-end: "; # UTC"
584
688
  # End:
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # install - install a program, script, or datafile
3
3
 
4
- scriptversion=2006-10-14.15
4
+ scriptversion=2011-01-19.21; # UTC
5
5
 
6
6
  # This originates from X11R5 (mit/util/scripts/install.sh), which was
7
7
  # later released in X11R6 (xc/config/util/install.sh) with the
@@ -48,7 +48,7 @@ IFS=" "" $nl"
48
48
  # set DOITPROG to echo to test this script
49
49
 
50
50
  # Don't use :- since 4.3BSD and earlier shells don't like it.
51
- doit="${DOITPROG-}"
51
+ doit=${DOITPROG-}
52
52
  if test -z "$doit"; then
53
53
  doit_exec=exec
54
54
  else
@@ -58,34 +58,49 @@ fi
58
58
  # Put in absolute file names if you don't have them in your path;
59
59
  # or use environment vars.
60
60
 
61
- mvprog="${MVPROG-mv}"
62
- cpprog="${CPPROG-cp}"
63
- chmodprog="${CHMODPROG-chmod}"
64
- chownprog="${CHOWNPROG-chown}"
65
- chgrpprog="${CHGRPPROG-chgrp}"
66
- stripprog="${STRIPPROG-strip}"
67
- rmprog="${RMPROG-rm}"
68
- mkdirprog="${MKDIRPROG-mkdir}"
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
+ '
69
81
 
70
- posix_glob=
71
82
  posix_mkdir=
72
83
 
73
84
  # Desired mode of installed file.
74
85
  mode=0755
75
86
 
87
+ chgrpcmd=
76
88
  chmodcmd=$chmodprog
77
89
  chowncmd=
78
- chgrpcmd=
79
- stripcmd=
90
+ mvcmd=$mvprog
80
91
  rmcmd="$rmprog -f"
81
- mvcmd="$mvprog"
92
+ stripcmd=
93
+
82
94
  src=
83
95
  dst=
84
96
  dir_arg=
85
- dstarg=
97
+ dst_arg=
98
+
99
+ copy_on_change=false
86
100
  no_target_directory=
87
101
 
88
- usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
102
+ usage="\
103
+ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
89
104
  or: $0 [OPTION]... SRCFILES... DIRECTORY
90
105
  or: $0 [OPTION]... -t DIRECTORY SRCFILES...
91
106
  or: $0 [OPTION]... -d DIRECTORIES...
@@ -95,65 +110,59 @@ In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
95
110
  In the 4th, create DIRECTORIES.
96
111
 
97
112
  Options:
98
- -c (ignored)
99
- -d create directories instead of installing files.
100
- -g GROUP $chgrpprog installed files to GROUP.
101
- -m MODE $chmodprog installed files to MODE.
102
- -o USER $chownprog installed files to USER.
103
- -s $stripprog installed files.
104
- -t DIRECTORY install into DIRECTORY.
105
- -T report an error if DSTFILE is a directory.
106
- --help display this help and exit.
107
- --version display version info and exit.
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.
108
125
 
109
126
  Environment variables override the default commands:
110
- CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
127
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
128
+ RMPROG STRIPPROG
111
129
  "
112
130
 
113
131
  while test $# -ne 0; do
114
132
  case $1 in
115
- -c) shift
116
- continue;;
133
+ -c) ;;
117
134
 
118
- -d) dir_arg=true
119
- shift
120
- continue;;
135
+ -C) copy_on_change=true;;
136
+
137
+ -d) dir_arg=true;;
121
138
 
122
139
  -g) chgrpcmd="$chgrpprog $2"
123
- shift
124
- shift
125
- continue;;
140
+ shift;;
126
141
 
127
142
  --help) echo "$usage"; exit $?;;
128
143
 
129
144
  -m) mode=$2
130
- shift
131
- shift
132
145
  case $mode in
133
146
  *' '* | *' '* | *'
134
147
  '* | *'*'* | *'?'* | *'['*)
135
148
  echo "$0: invalid mode: $mode" >&2
136
149
  exit 1;;
137
150
  esac
138
- continue;;
151
+ shift;;
139
152
 
140
153
  -o) chowncmd="$chownprog $2"
141
- shift
142
- shift
143
- continue;;
154
+ shift;;
144
155
 
145
- -s) stripcmd=$stripprog
146
- shift
147
- continue;;
156
+ -s) stripcmd=$stripprog;;
148
157
 
149
- -t) dstarg=$2
150
- shift
151
- shift
152
- continue;;
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;;
153
164
 
154
- -T) no_target_directory=true
155
- shift
156
- continue;;
165
+ -T) no_target_directory=true;;
157
166
 
158
167
  --version) echo "$0 $scriptversion"; exit $?;;
159
168
 
@@ -165,21 +174,26 @@ while test $# -ne 0; do
165
174
 
166
175
  *) break;;
167
176
  esac
177
+ shift
168
178
  done
169
179
 
170
- if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
180
+ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
171
181
  # When -d is used, all remaining arguments are directories to create.
172
182
  # When -t is used, the destination is already specified.
173
183
  # Otherwise, the last argument is the destination. Remove it from $@.
174
184
  for arg
175
185
  do
176
- if test -n "$dstarg"; then
186
+ if test -n "$dst_arg"; then
177
187
  # $@ is not empty: it contains at least $arg.
178
- set fnord "$@" "$dstarg"
188
+ set fnord "$@" "$dst_arg"
179
189
  shift # fnord
180
190
  fi
181
191
  shift # arg
182
- dstarg=$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
183
197
  done
184
198
  fi
185
199
 
@@ -194,7 +208,11 @@ if test $# -eq 0; then
194
208
  fi
195
209
 
196
210
  if test -z "$dir_arg"; then
197
- trap '(exit $?); exit' 1 2 13 15
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
198
216
 
199
217
  # Set umask so as not to create temps with too-generous modes.
200
218
  # However, 'strip' requires both read and write access to temps.
@@ -222,9 +240,9 @@ fi
222
240
 
223
241
  for src
224
242
  do
225
- # Protect names starting with `-'.
243
+ # Protect names problematic for `test' and other utilities.
226
244
  case $src in
227
- -*) src=./$src ;;
245
+ -* | [=\(\)!]) src=./$src;;
228
246
  esac
229
247
 
230
248
  if test -n "$dir_arg"; then
@@ -242,22 +260,17 @@ do
242
260
  exit 1
243
261
  fi
244
262
 
245
- if test -z "$dstarg"; then
263
+ if test -z "$dst_arg"; then
246
264
  echo "$0: no destination specified." >&2
247
265
  exit 1
248
266
  fi
249
-
250
- dst=$dstarg
251
- # Protect names starting with `-'.
252
- case $dst in
253
- -*) dst=./$dst ;;
254
- esac
267
+ dst=$dst_arg
255
268
 
256
269
  # If destination is a directory, append the input filename; won't work
257
270
  # if double slashes aren't ignored.
258
271
  if test -d "$dst"; then
259
272
  if test -n "$no_target_directory"; then
260
- echo "$0: $dstarg: Is a directory" >&2
273
+ echo "$0: $dst_arg: Is a directory" >&2
261
274
  exit 1
262
275
  fi
263
276
  dstdir=$dst
@@ -378,33 +391,26 @@ do
378
391
  # directory the slow way, step by step, checking for races as we go.
379
392
 
380
393
  case $dstdir in
381
- /*) prefix=/ ;;
382
- -*) prefix=./ ;;
383
- *) prefix= ;;
394
+ /*) prefix='/';;
395
+ [-=\(\)!]*) prefix='./';;
396
+ *) prefix='';;
384
397
  esac
385
398
 
386
- case $posix_glob in
387
- '')
388
- if (set -f) 2>/dev/null; then
389
- posix_glob=true
390
- else
391
- posix_glob=false
392
- fi ;;
393
- esac
399
+ eval "$initialize_posix_glob"
394
400
 
395
401
  oIFS=$IFS
396
402
  IFS=/
397
- $posix_glob && set -f
403
+ $posix_glob set -f
398
404
  set fnord $dstdir
399
405
  shift
400
- $posix_glob && set +f
406
+ $posix_glob set +f
401
407
  IFS=$oIFS
402
408
 
403
409
  prefixes=
404
410
 
405
411
  for d
406
412
  do
407
- test -z "$d" && continue
413
+ test X"$d" = X && continue
408
414
 
409
415
  prefix=$prefix$d
410
416
  if test -d "$prefix"; then
@@ -459,41 +465,54 @@ do
459
465
  # ignore errors from any of these, just make sure not to ignore
460
466
  # errors from the above "$doit $cpprog $src $dsttmp" command.
461
467
  #
462
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
463
- && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
464
- && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
465
- && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
466
-
467
- # Now rename the file to the real destination.
468
- { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
469
- || {
470
- # The rename failed, perhaps because mv can't rename something else
471
- # to itself, or perhaps because mv is so ancient that it does not
472
- # support -f.
473
-
474
- # Now remove or move aside any old file at destination location.
475
- # We try this two ways since rm can't unlink itself on some
476
- # systems and the destination file might be busy for other
477
- # reasons. In this case, the final cleanup might fail but the new
478
- # file should still install successfully.
479
- {
480
- if test -f "$dst"; then
481
- $doit $rmcmd -f "$dst" 2>/dev/null \
482
- || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
483
- && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
484
- || {
485
- echo "$0: cannot unlink or rename $dst" >&2
486
- (exit 1); exit 1
487
- }
488
- else
489
- :
490
- fi
491
- } &&
492
-
493
- # Now rename the file to the real destination.
494
- $doit $mvcmd "$dsttmp" "$dst"
495
- }
496
- } || exit 1
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
497
516
 
498
517
  trap '' 0
499
518
  fi
@@ -503,5 +522,6 @@ done
503
522
  # eval: (add-hook 'write-file-hooks 'time-stamp)
504
523
  # time-stamp-start: "scriptversion="
505
524
  # time-stamp-format: "%:y-%02m-%02d.%02H"
506
- # time-stamp-end: "$"
525
+ # time-stamp-time-zone: "UTC"
526
+ # time-stamp-end: "; # UTC"
507
527
  # End: