setup 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. data/COPYING +515 -0
  2. data/HISTORY +7 -0
  3. data/MANIFEST +231 -0
  4. data/METADATA +25 -0
  5. data/NEWS +21 -0
  6. data/README +110 -0
  7. data/bin/setup.rb +7 -0
  8. data/doc/manual/doc.en/devel.html +208 -0
  9. data/doc/manual/doc.en/hookapi.html +91 -0
  10. data/doc/manual/doc.en/index.html +28 -0
  11. data/doc/manual/doc.en/metaconfapi.html +79 -0
  12. data/doc/manual/doc.en/news.html +189 -0
  13. data/doc/manual/doc.en/usage.html +297 -0
  14. data/doc/manual/doc.ja/devel.html +301 -0
  15. data/doc/manual/doc.ja/hookapi.html +84 -0
  16. data/doc/manual/doc.ja/index.html +28 -0
  17. data/doc/manual/doc.ja/metaconfapi.html +80 -0
  18. data/doc/manual/doc.ja/news.html +186 -0
  19. data/doc/manual/doc.ja/usage.html +319 -0
  20. data/doc/rdoc/classes/Errno.html +89 -0
  21. data/doc/rdoc/classes/Errno/ENOTEMPTY.html +92 -0
  22. data/doc/rdoc/classes/File.html +134 -0
  23. data/doc/rdoc/classes/Setup.html +107 -0
  24. data/doc/rdoc/classes/Setup/Command.html +276 -0
  25. data/doc/rdoc/classes/Setup/ConfigTable.html +622 -0
  26. data/doc/rdoc/classes/Setup/Installer.html +2454 -0
  27. data/doc/rdoc/classes/Setup/Installer/Shebang.html +187 -0
  28. data/doc/rdoc/classes/SetupError.html +92 -0
  29. data/doc/rdoc/created.rid +1 -0
  30. data/doc/rdoc/files/COPYING.html +759 -0
  31. data/doc/rdoc/files/HISTORY.html +104 -0
  32. data/doc/rdoc/files/METADATA.html +92 -0
  33. data/doc/rdoc/files/NEWS.html +113 -0
  34. data/doc/rdoc/files/README.html +214 -0
  35. data/doc/rdoc/files/bin/setup_rb.html +96 -0
  36. data/doc/rdoc/files/lib/setup/build_rb.html +96 -0
  37. data/doc/rdoc/files/lib/setup/command_rb.html +98 -0
  38. data/doc/rdoc/files/lib/setup/config_rb.html +98 -0
  39. data/doc/rdoc/files/lib/setup/error_rb.html +92 -0
  40. data/doc/rdoc/files/lib/setup/install_rb.html +116 -0
  41. data/doc/rdoc/files/lib/setup/rake_rb.html +97 -0
  42. data/doc/rdoc/files/lib/setup/rubyver_rb.html +96 -0
  43. data/doc/rdoc/files/lib/setup_rb.html +92 -0
  44. data/doc/rdoc/fr_class_index.html +55 -0
  45. data/doc/rdoc/fr_file_index.html +60 -0
  46. data/doc/rdoc/fr_method_index.html +182 -0
  47. data/doc/rdoc/index.html +26 -0
  48. data/doc/rdoc/rdoc-style.css +177 -0
  49. data/doc/ri/Errno/ENOTEMPTY/cdesc-ENOTEMPTY.yaml +15 -0
  50. data/doc/ri/Errno/cdesc-Errno.yaml +15 -0
  51. data/doc/ri/File/cdesc-File.yaml +18 -0
  52. data/doc/ri/File/dir%3f-c.yaml +12 -0
  53. data/doc/ri/File/read-c.yaml +10 -0
  54. data/doc/ri/Setup/Command/cdesc-Command.yaml +28 -0
  55. data/doc/ri/Setup/Command/help-i.yaml +12 -0
  56. data/doc/ri/Setup/Command/run-c.yaml +11 -0
  57. data/doc/ri/Setup/Command/run-i.yaml +11 -0
  58. data/doc/ri/Setup/ConfigTable/%5b%5d%3d-i.yaml +12 -0
  59. data/doc/ri/Setup/ConfigTable/%5b%5d-i.yaml +12 -0
  60. data/doc/ri/Setup/ConfigTable/attr_accessor-c.yaml +12 -0
  61. data/doc/ri/Setup/ConfigTable/attr_boolean-c.yaml +12 -0
  62. data/doc/ri/Setup/ConfigTable/attr_pathlist-c.yaml +12 -0
  63. data/doc/ri/Setup/ConfigTable/attr_pathname-c.yaml +12 -0
  64. data/doc/ri/Setup/ConfigTable/cdesc-ConfigTable.yaml +66 -0
  65. data/doc/ri/Setup/ConfigTable/compiles%3f-i.yaml +10 -0
  66. data/doc/ri/Setup/ConfigTable/env_config-i.yaml +12 -0
  67. data/doc/ri/Setup/ConfigTable/extconfs-i.yaml +11 -0
  68. data/doc/ri/Setup/ConfigTable/extensions-i.yaml +10 -0
  69. data/doc/ri/Setup/ConfigTable/initialize_defaults-i.yaml +14 -0
  70. data/doc/ri/Setup/ConfigTable/installdirs%3d-i.yaml +12 -0
  71. data/doc/ri/Setup/ConfigTable/load_config-i.yaml +12 -0
  72. data/doc/ri/Setup/ConfigTable/new-c.yaml +12 -0
  73. data/doc/ri/Setup/ConfigTable/save_config-i.yaml +12 -0
  74. data/doc/ri/Setup/ConfigTable/shebang%3d-i.yaml +12 -0
  75. data/doc/ri/Setup/ConfigTable/show-i.yaml +10 -0
  76. data/doc/ri/Setup/Installer/Shebang/cdesc-Shebang.yaml +28 -0
  77. data/doc/ri/Setup/Installer/Shebang/load-c.yaml +10 -0
  78. data/doc/ri/Setup/Installer/Shebang/new-c.yaml +10 -0
  79. data/doc/ri/Setup/Installer/Shebang/parse-c.yaml +10 -0
  80. data/doc/ri/Setup/Installer/Shebang/to_s-i.yaml +10 -0
  81. data/doc/ri/Setup/Installer/binread-i.yaml +14 -0
  82. data/doc/ri/Setup/Installer/cdesc-Installer.yaml +281 -0
  83. data/doc/ri/Setup/Installer/clean_dir_bin-i.yaml +12 -0
  84. data/doc/ri/Setup/Installer/clean_dir_data-i.yaml +12 -0
  85. data/doc/ri/Setup/Installer/clean_dir_doc-i.yaml +12 -0
  86. data/doc/ri/Setup/Installer/clean_dir_etc-i.yaml +12 -0
  87. data/doc/ri/Setup/Installer/clean_dir_ext-i.yaml +10 -0
  88. data/doc/ri/Setup/Installer/clean_dir_lib-i.yaml +12 -0
  89. data/doc/ri/Setup/Installer/clean_dir_man-i.yaml +12 -0
  90. data/doc/ri/Setup/Installer/command-i.yaml +10 -0
  91. data/doc/ri/Setup/Installer/compiles%3f-i.yaml +10 -0
  92. data/doc/ri/Setup/Installer/config_dir_bin-i.yaml +12 -0
  93. data/doc/ri/Setup/Installer/config_dir_data-i.yaml +12 -0
  94. data/doc/ri/Setup/Installer/config_dir_doc-i.yaml +12 -0
  95. data/doc/ri/Setup/Installer/config_dir_etc-i.yaml +12 -0
  96. data/doc/ri/Setup/Installer/config_dir_ext-i.yaml +10 -0
  97. data/doc/ri/Setup/Installer/config_dir_lib-i.yaml +12 -0
  98. data/doc/ri/Setup/Installer/config_dir_man-i.yaml +12 -0
  99. data/doc/ri/Setup/Installer/curr_objdir-i.yaml +10 -0
  100. data/doc/ri/Setup/Installer/curr_srcdir-i.yaml +12 -0
  101. data/doc/ri/Setup/Installer/diff%3f-i.yaml +10 -0
  102. data/doc/ri/Setup/Installer/directories_of-i.yaml +10 -0
  103. data/doc/ri/Setup/Installer/distclean_dir_bin-i.yaml +12 -0
  104. data/doc/ri/Setup/Installer/distclean_dir_data-i.yaml +12 -0
  105. data/doc/ri/Setup/Installer/distclean_dir_doc-i.yaml +10 -0
  106. data/doc/ri/Setup/Installer/distclean_dir_etc-i.yaml +12 -0
  107. data/doc/ri/Setup/Installer/distclean_dir_ext-i.yaml +10 -0
  108. data/doc/ri/Setup/Installer/distclean_dir_lib-i.yaml +12 -0
  109. data/doc/ri/Setup/Installer/distclean_dir_man-i.yaml +12 -0
  110. data/doc/ri/Setup/Installer/dive_into-i.yaml +10 -0
  111. data/doc/ri/Setup/Installer/dllext-i.yaml +10 -0
  112. data/doc/ri/Setup/Installer/exec_all-i.yaml +12 -0
  113. data/doc/ri/Setup/Installer/exec_clean-i.yaml +12 -0
  114. data/doc/ri/Setup/Installer/exec_config-i.yaml +12 -0
  115. data/doc/ri/Setup/Installer/exec_distclean-i.yaml +12 -0
  116. data/doc/ri/Setup/Installer/exec_doc-i.yaml +11 -0
  117. data/doc/ri/Setup/Installer/exec_install-i.yaml +12 -0
  118. data/doc/ri/Setup/Installer/exec_rdoc-i.yaml +14 -0
  119. data/doc/ri/Setup/Installer/exec_ri-i.yaml +12 -0
  120. data/doc/ri/Setup/Installer/exec_setup-i.yaml +14 -0
  121. data/doc/ri/Setup/Installer/exec_show-i.yaml +12 -0
  122. data/doc/ri/Setup/Installer/exec_task_traverse-i.yaml +12 -0
  123. data/doc/ri/Setup/Installer/exec_test-i.yaml +14 -0
  124. data/doc/ri/Setup/Installer/exec_uninstall-i.yaml +12 -0
  125. data/doc/ri/Setup/Installer/existfiles-i.yaml +10 -0
  126. data/doc/ri/Setup/Installer/extconf-i.yaml +10 -0
  127. data/doc/ri/Setup/Installer/extdir%3f-i.yaml +10 -0
  128. data/doc/ri/Setup/Installer/extensions-i.yaml +12 -0
  129. data/doc/ri/Setup/Installer/files_of-i.yaml +10 -0
  130. data/doc/ri/Setup/Installer/force_remove_file-i.yaml +10 -0
  131. data/doc/ri/Setup/Installer/get_config-i.yaml +11 -0
  132. data/doc/ri/Setup/Installer/glob_reject-i.yaml +10 -0
  133. data/doc/ri/Setup/Installer/glob_select-i.yaml +10 -0
  134. data/doc/ri/Setup/Installer/globs2re-i.yaml +10 -0
  135. data/doc/ri/Setup/Installer/hookfiles-i.yaml +10 -0
  136. data/doc/ri/Setup/Installer/inspect-i.yaml +10 -0
  137. data/doc/ri/Setup/Installer/install-i.yaml +10 -0
  138. data/doc/ri/Setup/Installer/install_dir_bin-i.yaml +10 -0
  139. data/doc/ri/Setup/Installer/install_dir_data-i.yaml +10 -0
  140. data/doc/ri/Setup/Installer/install_dir_doc-i.yaml +12 -0
  141. data/doc/ri/Setup/Installer/install_dir_etc-i.yaml +10 -0
  142. data/doc/ri/Setup/Installer/install_dir_ext-i.yaml +10 -0
  143. data/doc/ri/Setup/Installer/install_dir_lib-i.yaml +10 -0
  144. data/doc/ri/Setup/Installer/install_dir_man-i.yaml +10 -0
  145. data/doc/ri/Setup/Installer/install_files-i.yaml +10 -0
  146. data/doc/ri/Setup/Installer/installation%21-i.yaml +10 -0
  147. data/doc/ri/Setup/Installer/installation%3f-i.yaml +12 -0
  148. data/doc/ri/Setup/Installer/libfiles-i.yaml +10 -0
  149. data/doc/ri/Setup/Installer/make-i.yaml +10 -0
  150. data/doc/ri/Setup/Installer/mapdir-i.yaml +10 -0
  151. data/doc/ri/Setup/Installer/mkdir_p-i.yaml +10 -0
  152. data/doc/ri/Setup/Installer/move_file-i.yaml +10 -0
  153. data/doc/ri/Setup/Installer/new-c.yaml +12 -0
  154. data/doc/ri/Setup/Installer/new_shebang-i.yaml +10 -0
  155. data/doc/ri/Setup/Installer/no_harm%3f-i.yaml +10 -0
  156. data/doc/ri/Setup/Installer/noop-i.yaml +54 -0
  157. data/doc/ri/Setup/Installer/objdir_root-i.yaml +10 -0
  158. data/doc/ri/Setup/Installer/open_atomic_writer-i.yaml +10 -0
  159. data/doc/ri/Setup/Installer/quiet%3f-i.yaml +10 -0
  160. data/doc/ri/Setup/Installer/record_installation-i.yaml +10 -0
  161. data/doc/ri/Setup/Installer/relpath-i.yaml +10 -0
  162. data/doc/ri/Setup/Installer/remove_file-i.yaml +10 -0
  163. data/doc/ri/Setup/Installer/remove_tree-i.yaml +10 -0
  164. data/doc/ri/Setup/Installer/remove_tree0-i.yaml +10 -0
  165. data/doc/ri/Setup/Installer/report_header-i.yaml +11 -0
  166. data/doc/ri/Setup/Installer/rm_f-i.yaml +10 -0
  167. data/doc/ri/Setup/Installer/rm_rf-i.yaml +10 -0
  168. data/doc/ri/Setup/Installer/rmdir-i.yaml +10 -0
  169. data/doc/ri/Setup/Installer/ruby-i.yaml +10 -0
  170. data/doc/ri/Setup/Installer/rubyextentions-i.yaml +10 -0
  171. data/doc/ri/Setup/Installer/run_hook-i.yaml +10 -0
  172. data/doc/ri/Setup/Installer/set_config-i.yaml +12 -0
  173. data/doc/ri/Setup/Installer/setup_dir_bin-i.yaml +10 -0
  174. data/doc/ri/Setup/Installer/setup_dir_data-i.yaml +12 -0
  175. data/doc/ri/Setup/Installer/setup_dir_doc-i.yaml +12 -0
  176. data/doc/ri/Setup/Installer/setup_dir_etc-i.yaml +12 -0
  177. data/doc/ri/Setup/Installer/setup_dir_ext-i.yaml +10 -0
  178. data/doc/ri/Setup/Installer/setup_dir_lib-i.yaml +12 -0
  179. data/doc/ri/Setup/Installer/setup_dir_man-i.yaml +12 -0
  180. data/doc/ri/Setup/Installer/srcdir_root-i.yaml +12 -0
  181. data/doc/ri/Setup/Installer/srcdirectories-i.yaml +10 -0
  182. data/doc/ri/Setup/Installer/srcdirectory%3f-i.yaml +10 -0
  183. data/doc/ri/Setup/Installer/srcentries-i.yaml +10 -0
  184. data/doc/ri/Setup/Installer/srcexist%3f-i.yaml +10 -0
  185. data/doc/ri/Setup/Installer/srcfile%3f-i.yaml +10 -0
  186. data/doc/ri/Setup/Installer/srcfile-i.yaml +10 -0
  187. data/doc/ri/Setup/Installer/srcfiles-i.yaml +10 -0
  188. data/doc/ri/Setup/Installer/targetfiles-i.yaml +10 -0
  189. data/doc/ri/Setup/Installer/traverse-i.yaml +10 -0
  190. data/doc/ri/Setup/Installer/update_shebang_line-i.yaml +10 -0
  191. data/doc/ri/Setup/Installer/verbose%3f-i.yaml +10 -0
  192. data/doc/ri/Setup/Installer/verbose_off-i.yaml +10 -0
  193. data/doc/ri/Setup/cdesc-Setup.yaml +15 -0
  194. data/doc/ri/SetupError/cdesc-SetupError.yaml +15 -0
  195. data/doc/ri/created.rid +1 -0
  196. data/lib/setup.rb +5 -0
  197. data/lib/setup/build.rb +2 -0
  198. data/lib/setup/command.rb +169 -0
  199. data/lib/setup/config.rb +339 -0
  200. data/lib/setup/error.rb +1 -0
  201. data/lib/setup/install.rb +915 -0
  202. data/lib/setup/rake.rb +62 -0
  203. data/lib/setup/rubyver.rb +25 -0
  204. data/script/install +6 -0
  205. metadata +293 -0
data/HISTORY ADDED
@@ -0,0 +1,7 @@
1
+ = RELEASE HISTORY
2
+
3
+ == 4.0.0 // 2008-08-15
4
+
5
+ * Intial release.
6
+ * This is a conversion of Minero Aoki's setup.rb into a stand alone application.
7
+
data/MANIFEST ADDED
@@ -0,0 +1,231 @@
1
+ doc
2
+ doc/manual
3
+ doc/manual/doc.en
4
+ doc/manual/doc.en/devel.html
5
+ doc/manual/doc.en/usage.html
6
+ doc/manual/doc.en/index.html
7
+ doc/manual/doc.en/hookapi.html
8
+ doc/manual/doc.en/news.html
9
+ doc/manual/doc.en/metaconfapi.html
10
+ doc/manual/doc.ja
11
+ doc/manual/doc.ja/devel.html
12
+ doc/manual/doc.ja/usage.html
13
+ doc/manual/doc.ja/index.html
14
+ doc/manual/doc.ja/hookapi.html
15
+ doc/manual/doc.ja/news.html
16
+ doc/manual/doc.ja/metaconfapi.html
17
+ doc/rdoc
18
+ doc/rdoc/fr_file_index.html
19
+ doc/rdoc/classes
20
+ doc/rdoc/classes/Errno.html
21
+ doc/rdoc/classes/Setup.html
22
+ doc/rdoc/classes/Errno
23
+ doc/rdoc/classes/Errno/ENOTEMPTY.html
24
+ doc/rdoc/classes/Setup
25
+ doc/rdoc/classes/Setup/ConfigTable.html
26
+ doc/rdoc/classes/Setup/Installer
27
+ doc/rdoc/classes/Setup/Installer/Shebang.html
28
+ doc/rdoc/classes/Setup/Command.html
29
+ doc/rdoc/classes/Setup/Installer.html
30
+ doc/rdoc/classes/SetupError.html
31
+ doc/rdoc/classes/File.html
32
+ doc/rdoc/rdoc-style.css
33
+ doc/rdoc/files
34
+ doc/rdoc/files/README.html
35
+ doc/rdoc/files/METADATA.html
36
+ doc/rdoc/files/lib
37
+ doc/rdoc/files/lib/setup
38
+ doc/rdoc/files/lib/setup/config_rb.html
39
+ doc/rdoc/files/lib/setup/rake_rb.html
40
+ doc/rdoc/files/lib/setup/rubyver_rb.html
41
+ doc/rdoc/files/lib/setup/command_rb.html
42
+ doc/rdoc/files/lib/setup/build_rb.html
43
+ doc/rdoc/files/lib/setup/install_rb.html
44
+ doc/rdoc/files/lib/setup/error_rb.html
45
+ doc/rdoc/files/lib/setup_rb.html
46
+ doc/rdoc/files/NEWS.html
47
+ doc/rdoc/files/HISTORY.html
48
+ doc/rdoc/files/COPYING.html
49
+ doc/rdoc/files/bin
50
+ doc/rdoc/files/bin/setup_rb.html
51
+ doc/rdoc/fr_class_index.html
52
+ doc/rdoc/index.html
53
+ doc/rdoc/created.rid
54
+ doc/rdoc/fr_method_index.html
55
+ doc/ri
56
+ doc/ri/File
57
+ doc/ri/File/dir%3f-c.yaml
58
+ doc/ri/File/cdesc-File.yaml
59
+ doc/ri/File/read-c.yaml
60
+ doc/ri/SetupError
61
+ doc/ri/SetupError/cdesc-SetupError.yaml
62
+ doc/ri/created.rid
63
+ doc/ri/Errno
64
+ doc/ri/Errno/cdesc-Errno.yaml
65
+ doc/ri/Errno/ENOTEMPTY
66
+ doc/ri/Errno/ENOTEMPTY/cdesc-ENOTEMPTY.yaml
67
+ doc/ri/Setup
68
+ doc/ri/Setup/cdesc-Setup.yaml
69
+ doc/ri/Setup/Command
70
+ doc/ri/Setup/Command/run-c.yaml
71
+ doc/ri/Setup/Command/run-i.yaml
72
+ doc/ri/Setup/Command/cdesc-Command.yaml
73
+ doc/ri/Setup/Command/help-i.yaml
74
+ doc/ri/Setup/Installer
75
+ doc/ri/Setup/Installer/srcfile%3f-i.yaml
76
+ doc/ri/Setup/Installer/make-i.yaml
77
+ doc/ri/Setup/Installer/install_dir_doc-i.yaml
78
+ doc/ri/Setup/Installer/install_dir_lib-i.yaml
79
+ doc/ri/Setup/Installer/distclean_dir_lib-i.yaml
80
+ doc/ri/Setup/Installer/report_header-i.yaml
81
+ doc/ri/Setup/Installer/binread-i.yaml
82
+ doc/ri/Setup/Installer/clean_dir_etc-i.yaml
83
+ doc/ri/Setup/Installer/exec_test-i.yaml
84
+ doc/ri/Setup/Installer/srcexist%3f-i.yaml
85
+ doc/ri/Setup/Installer/clean_dir_ext-i.yaml
86
+ doc/ri/Setup/Installer/config_dir_etc-i.yaml
87
+ doc/ri/Setup/Installer/remove_tree-i.yaml
88
+ doc/ri/Setup/Installer/srcdirectories-i.yaml
89
+ doc/ri/Setup/Installer/verbose_off-i.yaml
90
+ doc/ri/Setup/Installer/compiles%3f-i.yaml
91
+ doc/ri/Setup/Installer/curr_objdir-i.yaml
92
+ doc/ri/Setup/Installer/globs2re-i.yaml
93
+ doc/ri/Setup/Installer/rm_f-i.yaml
94
+ doc/ri/Setup/Installer/dllext-i.yaml
95
+ doc/ri/Setup/Installer/install_dir_etc-i.yaml
96
+ doc/ri/Setup/Installer/exec_install-i.yaml
97
+ doc/ri/Setup/Installer/targetfiles-i.yaml
98
+ doc/ri/Setup/Installer/mapdir-i.yaml
99
+ doc/ri/Setup/Installer/exec_task_traverse-i.yaml
100
+ doc/ri/Setup/Installer/extconf-i.yaml
101
+ doc/ri/Setup/Installer/rubyextentions-i.yaml
102
+ doc/ri/Setup/Installer/clean_dir_doc-i.yaml
103
+ doc/ri/Setup/Installer/open_atomic_writer-i.yaml
104
+ doc/ri/Setup/Installer/srcdirectory%3f-i.yaml
105
+ doc/ri/Setup/Installer/Shebang
106
+ doc/ri/Setup/Installer/Shebang/load-c.yaml
107
+ doc/ri/Setup/Installer/Shebang/cdesc-Shebang.yaml
108
+ doc/ri/Setup/Installer/Shebang/parse-c.yaml
109
+ doc/ri/Setup/Installer/Shebang/to_s-i.yaml
110
+ doc/ri/Setup/Installer/Shebang/new-c.yaml
111
+ doc/ri/Setup/Installer/curr_srcdir-i.yaml
112
+ doc/ri/Setup/Installer/exec_distclean-i.yaml
113
+ doc/ri/Setup/Installer/rm_rf-i.yaml
114
+ doc/ri/Setup/Installer/config_dir_doc-i.yaml
115
+ doc/ri/Setup/Installer/quiet%3f-i.yaml
116
+ doc/ri/Setup/Installer/distclean_dir_man-i.yaml
117
+ doc/ri/Setup/Installer/verbose%3f-i.yaml
118
+ doc/ri/Setup/Installer/force_remove_file-i.yaml
119
+ doc/ri/Setup/Installer/mkdir_p-i.yaml
120
+ doc/ri/Setup/Installer/ruby-i.yaml
121
+ doc/ri/Setup/Installer/exec_uninstall-i.yaml
122
+ doc/ri/Setup/Installer/dive_into-i.yaml
123
+ doc/ri/Setup/Installer/clean_dir_man-i.yaml
124
+ doc/ri/Setup/Installer/setup_dir_lib-i.yaml
125
+ doc/ri/Setup/Installer/diff%3f-i.yaml
126
+ doc/ri/Setup/Installer/installation%21-i.yaml
127
+ doc/ri/Setup/Installer/install_dir_data-i.yaml
128
+ doc/ri/Setup/Installer/objdir_root-i.yaml
129
+ doc/ri/Setup/Installer/distclean_dir_etc-i.yaml
130
+ doc/ri/Setup/Installer/setup_dir_doc-i.yaml
131
+ doc/ri/Setup/Installer/glob_select-i.yaml
132
+ doc/ri/Setup/Installer/distclean_dir_ext-i.yaml
133
+ doc/ri/Setup/Installer/exec_all-i.yaml
134
+ doc/ri/Setup/Installer/get_config-i.yaml
135
+ doc/ri/Setup/Installer/update_shebang_line-i.yaml
136
+ doc/ri/Setup/Installer/files_of-i.yaml
137
+ doc/ri/Setup/Installer/config_dir_bin-i.yaml
138
+ doc/ri/Setup/Installer/noop-i.yaml
139
+ doc/ri/Setup/Installer/install_dir_ext-i.yaml
140
+ doc/ri/Setup/Installer/extensions-i.yaml
141
+ doc/ri/Setup/Installer/relpath-i.yaml
142
+ doc/ri/Setup/Installer/remove_tree0-i.yaml
143
+ doc/ri/Setup/Installer/srcdir_root-i.yaml
144
+ doc/ri/Setup/Installer/existfiles-i.yaml
145
+ doc/ri/Setup/Installer/inspect-i.yaml
146
+ doc/ri/Setup/Installer/config_dir_data-i.yaml
147
+ doc/ri/Setup/Installer/config_dir_lib-i.yaml
148
+ doc/ri/Setup/Installer/exec_doc-i.yaml
149
+ doc/ri/Setup/Installer/distclean_dir_doc-i.yaml
150
+ doc/ri/Setup/Installer/record_installation-i.yaml
151
+ doc/ri/Setup/Installer/distclean_dir_bin-i.yaml
152
+ doc/ri/Setup/Installer/exec_show-i.yaml
153
+ doc/ri/Setup/Installer/hookfiles-i.yaml
154
+ doc/ri/Setup/Installer/glob_reject-i.yaml
155
+ doc/ri/Setup/Installer/new_shebang-i.yaml
156
+ doc/ri/Setup/Installer/rmdir-i.yaml
157
+ doc/ri/Setup/Installer/exec_setup-i.yaml
158
+ doc/ri/Setup/Installer/clean_dir_bin-i.yaml
159
+ doc/ri/Setup/Installer/config_dir_ext-i.yaml
160
+ doc/ri/Setup/Installer/clean_dir_lib-i.yaml
161
+ doc/ri/Setup/Installer/exec_clean-i.yaml
162
+ doc/ri/Setup/Installer/setup_dir_bin-i.yaml
163
+ doc/ri/Setup/Installer/setup_dir_data-i.yaml
164
+ doc/ri/Setup/Installer/installation%3f-i.yaml
165
+ doc/ri/Setup/Installer/install_files-i.yaml
166
+ doc/ri/Setup/Installer/srcfile-i.yaml
167
+ doc/ri/Setup/Installer/traverse-i.yaml
168
+ doc/ri/Setup/Installer/install_dir_bin-i.yaml
169
+ doc/ri/Setup/Installer/srcfiles-i.yaml
170
+ doc/ri/Setup/Installer/install-i.yaml
171
+ doc/ri/Setup/Installer/no_harm%3f-i.yaml
172
+ doc/ri/Setup/Installer/directories_of-i.yaml
173
+ doc/ri/Setup/Installer/exec_rdoc-i.yaml
174
+ doc/ri/Setup/Installer/setup_dir_etc-i.yaml
175
+ doc/ri/Setup/Installer/setup_dir_ext-i.yaml
176
+ doc/ri/Setup/Installer/exec_config-i.yaml
177
+ doc/ri/Setup/Installer/distclean_dir_data-i.yaml
178
+ doc/ri/Setup/Installer/run_hook-i.yaml
179
+ doc/ri/Setup/Installer/config_dir_man-i.yaml
180
+ doc/ri/Setup/Installer/srcentries-i.yaml
181
+ doc/ri/Setup/Installer/libfiles-i.yaml
182
+ doc/ri/Setup/Installer/command-i.yaml
183
+ doc/ri/Setup/Installer/extdir%3f-i.yaml
184
+ doc/ri/Setup/Installer/set_config-i.yaml
185
+ doc/ri/Setup/Installer/new-c.yaml
186
+ doc/ri/Setup/Installer/install_dir_man-i.yaml
187
+ doc/ri/Setup/Installer/clean_dir_data-i.yaml
188
+ doc/ri/Setup/Installer/remove_file-i.yaml
189
+ doc/ri/Setup/Installer/cdesc-Installer.yaml
190
+ doc/ri/Setup/Installer/exec_ri-i.yaml
191
+ doc/ri/Setup/Installer/setup_dir_man-i.yaml
192
+ doc/ri/Setup/Installer/move_file-i.yaml
193
+ doc/ri/Setup/ConfigTable
194
+ doc/ri/Setup/ConfigTable/show-i.yaml
195
+ doc/ri/Setup/ConfigTable/attr_pathlist-c.yaml
196
+ doc/ri/Setup/ConfigTable/compiles%3f-i.yaml
197
+ doc/ri/Setup/ConfigTable/cdesc-ConfigTable.yaml
198
+ doc/ri/Setup/ConfigTable/%5b%5d%3d-i.yaml
199
+ doc/ri/Setup/ConfigTable/attr_boolean-c.yaml
200
+ doc/ri/Setup/ConfigTable/shebang%3d-i.yaml
201
+ doc/ri/Setup/ConfigTable/env_config-i.yaml
202
+ doc/ri/Setup/ConfigTable/load_config-i.yaml
203
+ doc/ri/Setup/ConfigTable/installdirs%3d-i.yaml
204
+ doc/ri/Setup/ConfigTable/initialize_defaults-i.yaml
205
+ doc/ri/Setup/ConfigTable/extensions-i.yaml
206
+ doc/ri/Setup/ConfigTable/extconfs-i.yaml
207
+ doc/ri/Setup/ConfigTable/save_config-i.yaml
208
+ doc/ri/Setup/ConfigTable/%5b%5d-i.yaml
209
+ doc/ri/Setup/ConfigTable/attr_accessor-c.yaml
210
+ doc/ri/Setup/ConfigTable/new-c.yaml
211
+ doc/ri/Setup/ConfigTable/attr_pathname-c.yaml
212
+ test
213
+ README
214
+ HISTORY
215
+ METADATA
216
+ lib
217
+ lib/setup.rb
218
+ lib/setup
219
+ lib/setup/install.rb
220
+ lib/setup/rake.rb
221
+ lib/setup/command.rb
222
+ lib/setup/build.rb
223
+ lib/setup/config.rb
224
+ lib/setup/rubyver.rb
225
+ lib/setup/error.rb
226
+ NEWS
227
+ bin
228
+ bin/setup.rb
229
+ script
230
+ script/install
231
+ COPYING
data/METADATA ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ project : setup
3
+ version : 4.0.0
4
+ status : beta
5
+ released : 2008-08-15
6
+
7
+ title : Setup
8
+ brief : Setup.rb Stand-alone Application
9
+
10
+ author : trans <transfire@gmail.com>
11
+ copyright : (c) 2008 Tiger Ops
12
+ homepage : http://setup.rubyforge.org
13
+ email : tigerops-talk@rubyforge.org
14
+ created : 2008-08-01
15
+
16
+ abstract : >
17
+ Every Rubyist is aware of Minero Aoki's ever useful
18
+ setup.rb script. It's how most of us used to install
19
+ our ruby programs before RubyGems came along.And it's
20
+ still mighty useful in certain scenarios, not the least
21
+ of which is the job of the distribution package managers.
22
+ Setup converts setup.rb into a stand-alone application.
23
+ No longer will you need distribute setup.rb with you
24
+ Ruby packages. Just instruct your users to use Setup.
25
+
data/NEWS ADDED
@@ -0,0 +1,21 @@
1
+ = NEWS
2
+
3
+ == 4.0.0 // 2008-08-16
4
+
5
+ This is the initial release of Setup. As such it is getting
6
+ the label "betaware" until enough people put it
7
+ through it's paces. However, since it is predominantly
8
+ setup.rb 3.4.1 code, and that it works to install
9
+ itself ;) it certainly is a usable product.
10
+
11
+ Please report any problems so we can fix them ASAP.
12
+
13
+ Currently Setup does not support Aoki's Metaconfig API.
14
+ It's usefulness seems extremely limited, but we will
15
+ reconsider adding it back in a furture version.
16
+
17
+ Multi-package support has also been removed.
18
+
19
+ --
20
+ Website: http://setup.rubyforge.org
21
+
data/README ADDED
@@ -0,0 +1,110 @@
1
+ = Setup
2
+
3
+ http://setup.rubyforge.org
4
+
5
+
6
+
7
+ == Introduction
8
+
9
+ Every Rubyist is aware of Minero Aoki's ever useful
10
+ setup.rb script. It's how most of us used to install
11
+ our ruby programs before RubyGems came along.And it's
12
+ still mighty useful in certain scenarios, not the least
13
+ of which is the job of the distribution package managers.
14
+ Setup converts setup.rb into a stand-alone application.
15
+ No longer will you need distribute setup.rb with you
16
+ Ruby packages. Just instruct your users to use Setup.
17
+
18
+
19
+
20
+ == Important
21
+
22
+ There a couple very important difference between the old
23
+ 3.4.1 verison of the setup.rb script and version 4.0.0
24
+ of the independent application.
25
+
26
+ * The directory convention 'conf' has been change to 'etc'.
27
+ * The Metacofig API is not currently supported.
28
+ * Multi-package project layouts are no longer supported.
29
+
30
+
31
+ == Install
32
+
33
+ The easy way to install is via RubyGems.
34
+
35
+ $ gem install setup
36
+
37
+ To install Setup manually you need to "boot-strap" it.
38
+ This is done for you, by running the following:
39
+
40
+ $ script/install
41
+
42
+
43
+
44
+ == Usage
45
+
46
+ Please see the documentation in doc/manual.
47
+
48
+ To use setup.rb a project must conform to the setup.rb
49
+ standard layout.
50
+
51
+ Usage is as simple as:
52
+
53
+ $ setup.rb config
54
+ $ setup.rb setup
55
+ $ setup.rb install
56
+
57
+ or
58
+
59
+ $ setup.rb all
60
+
61
+ If you later decide you want to remove the program.
62
+
63
+ $ setup.rb uninstall
64
+
65
+ Note that uninstall is made possible by the .installedfiles
66
+ file that is generated by the install process. If that file
67
+ is deleted than you will not be able to uninstall. (You can
68
+ get around this be reinstalling first though).
69
+
70
+ You can clean up any setup products with:
71
+
72
+ $ setup.rb clean
73
+
74
+ And restore the package to it's pristine state with:
75
+
76
+ $ setup.rb distclean
77
+
78
+ Not that this last command will remove the .installedfiles
79
+ file!
80
+
81
+
82
+
83
+ == To Do
84
+
85
+ * Maybe protect .installedfiles from removal, even on distclean.
86
+ * Separate compiling code into separate class.
87
+
88
+
89
+
90
+ == License
91
+
92
+ Copyright (c) 2002,2005 Minero Aoki
93
+ Copyright (c) 2008 TigerOps & Thomas Sawyer
94
+
95
+ GNU LGPL, Lesser General Public License version 2.1.
96
+ For details of LGPL, see the file "COPYING".
97
+
98
+
99
+
100
+
101
+ 7trans
102
+ transfire@gmail.com
103
+ http://tigerops.org
104
+
105
+
106
+ Minero Aoki
107
+ aamine@loveruby.net
108
+ http://i.loveruby.net
109
+
110
+
data/bin/setup.rb ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'setup/command'
4
+
5
+ Setup::Command.run
6
+
7
+
@@ -0,0 +1,208 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
5
+ <meta http-equiv="Content-Language" content="en">
6
+ <title>Creating Packages with setup.rb</title>
7
+ </head>
8
+ <body>
9
+
10
+ <h1>Creating Packages with setup.rb</h1>
11
+ <h2>Creating Single Package Archive</h2>
12
+ <p>
13
+ &quot;Single Package Archive&quot; means the archive which includes
14
+ only one PACKAGE. &quot;package&quot; means one set of ruby scripts,
15
+ ruby extentions, commands, and data files.
16
+ </p>
17
+ <p>
18
+ setup.rb requires that the archive is structured like this:
19
+ </p>
20
+ <pre>
21
+ PackageTop/
22
+ setup.rb
23
+ lib/
24
+ (ruby scripts)
25
+ ext/
26
+ (ruby extentions)
27
+ bin/
28
+ (commands)
29
+ data/
30
+ (data files)
31
+ conf/
32
+ (configuration files)
33
+ man/
34
+ (manual pages)
35
+ test/
36
+ (tests)
37
+ </pre>
38
+ <p>
39
+ Each file/directories acts as below:
40
+ </p>
41
+ <dl>
42
+ <dt>setup.rb</dt>
43
+ <dd><p>
44
+ The installer. This file is included in this archive.
45
+ Just copy it to your package.
46
+ </p>
47
+ </dd>
48
+ <dt>lib/, bin/, data/, conf/, man/</dt>
49
+ <dd><p>
50
+ These directories includes files which are to be installed.
51
+ This directory tree is mirrored to the target directory, from 'lib/'
52
+ to 'RUBYLIB/', from 'bin/' to 'BINDIR/', from 'data/' to 'DATADIR/' ....
53
+ </p>
54
+ <p>
55
+ Use 'lib/' for ruby scripts, 'bin/' for commands, 'data/' for any
56
+ other data files, 'conf/' for configuration files, 'man/' for
57
+ manual pages.
58
+ </p>
59
+ </dd>
60
+ <dt>ext/</dt>
61
+ <dd><p>
62
+ 'ext/' directory includes source code of ruby extentions.
63
+ If you want to install 'RUBYLIB/ARCH/someext.so', create
64
+ a directory 'ext/someext/' and put source files into it.
65
+ </p>
66
+ <p>
67
+ [WARNING] All extention source directories MUST include
68
+ extconf.rb or MANIFEST.
69
+ </p>
70
+ </dd>
71
+ <dt>test/</dt>
72
+ <dd><p>
73
+ 'test/' directory contains test scripts. You must write
74
+ test scripts which run on test/unit library.
75
+ </p>
76
+ </dd>
77
+ </dl>
78
+ <h2>Creating Multi-Package Archive</h2>
79
+ <p>
80
+ setup.rb can handle an archive which includes multiple PACKAGEs.
81
+ </p>
82
+ <p>
83
+ setup.rb requires the archive is structured as below:
84
+ </p>
85
+ <pre>
86
+ PackageTop/
87
+ setup.rb
88
+ packages/ &lt;--- fixed name
89
+ tmail/ &lt;--- tmail package
90
+ bin/
91
+ lib/
92
+ ext/
93
+ data/
94
+ conf/
95
+ man/
96
+ test/
97
+ raccrt/ &lt;--- raccrt package
98
+ bin/
99
+ lib/
100
+ ext/
101
+ data/
102
+ conf/
103
+ man/
104
+ test/
105
+ strscan/ &lt;--- strscan package
106
+ bin/
107
+ lib/
108
+ ext/
109
+ data/
110
+ conf/
111
+ man/
112
+ test/
113
+ amstd/ &lt;--- amstd package
114
+ bin/
115
+ lib/
116
+ ext/
117
+ data/
118
+ conf/
119
+ man/
120
+ test/
121
+ </pre>
122
+ <h2>Hooking Tasks</h2>
123
+ <p>
124
+ You can hook any tasks, such as &quot;config&quot; &quot;setup&quot;.
125
+ For example, you want to make some files in 'lib/tmail/' when setup.
126
+ Then create file 'lib/tmail/pre-setup.rb' and put this:
127
+ </p>
128
+ <pre>
129
+ # pre-setup.rb
130
+
131
+ # process grammer file
132
+ system &quot;racc #{srcdir_root + '/src/mp.y'} -o mailp.rb&quot;
133
+
134
+ # require all ruby scripts in this directory from _loadlib.rb.
135
+ list = Dir.glob(curr_srcdir + '/*.rb').collect {|n| File.basename(n) }
136
+ File.open( '_loadlib.rb', 'w' ) {|f|
137
+ f.puts list.collect {|n| &quot;require 'tmail/&quot; + n + &quot;'&quot; }
138
+ }
139
+ File.open( '../tmail.rb', 'w' ) {|f|
140
+ f.puts &quot;require 'tmail/_loadlib'&quot;
141
+ }
142
+ </pre>
143
+ <p>
144
+ This file is evaluated on task &quot;setup&quot; in the directory,
145
+ before processing any other thing. Acceptable hook file names are:
146
+ </p>
147
+ <pre>
148
+ {pre,post}-{config,setup,install,test,clean,distclean}.rb
149
+ </pre>
150
+ <p>
151
+ [NOTE] You can also put hook files in the top directory of archive
152
+ and/or the type-root directory ('bin/', 'lib/',...).
153
+ </p>
154
+ <h2>srcdir/objdir support</h2>
155
+ <p>
156
+ setup.rb supports srcdir/objdir separation. In other words,
157
+ you can compile everything out of the source directory.
158
+ </p>
159
+ <p>
160
+ If you write hooks, you should supports srcdir/objdir system.
161
+ When you read source code, read it from srcdir. When you write
162
+ anything, write it to the current directory. There's also some
163
+ APIs to help your work. see
164
+ ,&lt;a href=&quot;hookapi.html&quot;&gt;Hook Script APIs Reference Manual&lt;/a&gt;
165
+ </p>
166
+ <h2>metaconfig</h2>
167
+ <p>
168
+ You can add new config options by writing file &quot;metaconfig&quot;.
169
+ metaconfig must be placed in the package-root directory.
170
+ </p>
171
+ <p>
172
+ Here is a simple example of metaconfig.
173
+ </p>
174
+ <pre>
175
+ add_path_config 'libc', '/lib/libc.so', 'path to the C standard library'
176
+ add_bool_config 'win32', false, 'compile with Win32 support'
177
+ </pre>
178
+ <p>
179
+ This script defined new config option --libc and --win32.
180
+ </p>
181
+ <p>
182
+ In 'metaconfig', you can use some APIs described in
183
+ ,&lt;a href=&quot;metaconfapi.html&quot;&gt;metaconfig API Reference Manual&lt;/a&gt;
184
+ </p>
185
+ <h2>Backward Compatibility</h2>
186
+ <p>
187
+ I do not assure any backward compatibility for the setup.rb.
188
+ If you'd like old behavior, just use old version.
189
+ </p>
190
+ <h2>License</h2>
191
+ <p>
192
+ GNU LGPL, Lesser General Public License version 2.1.
193
+ For details, see file &quot;COPYING&quot;.
194
+ </p>
195
+ <p>
196
+ NOTE: You CAN distribute your program under the any licenses
197
+ you like. LGPL does not force you to make your programs LGPL
198
+ while the installer is LGPL'ed one.
199
+ </p>
200
+ <h2>Installation Manual</h2>
201
+ <p>
202
+ You can freely copy/edit and/or distribute Usage_*.txt files
203
+ which are included in this archive. I do not claim any rights
204
+ on them. Removing my copyright is also OK.
205
+ </p>
206
+
207
+ </body>
208
+ </html>