ratch 0.2.3 → 0.3.0

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 (129) hide show
  1. data/bin/ratch +60 -47
  2. data/bin/ratch-find +21 -0
  3. data/demo/{README → XR} +0 -0
  4. data/demo/task/stats +0 -2
  5. data/doc/images/clipboard.jpg +0 -0
  6. data/doc/images/clipboard2.png +0 -0
  7. data/doc/images/milles-tn.jpg +0 -0
  8. data/doc/images/mints.png +0 -0
  9. data/doc/images/ratch2.png +0 -0
  10. data/doc/images/ruby-sm.png +0 -0
  11. data/doc/images/silver.gif +0 -0
  12. data/doc/images/toolbox.jpg +0 -0
  13. data/doc/index.html +181 -0
  14. data/doc/notes/original.rb +308 -0
  15. data/doc/rdoc/classes/Array.html +194 -0
  16. data/doc/rdoc/classes/Dir.html +317 -0
  17. data/doc/rdoc/classes/Hash.html +217 -0
  18. data/doc/rdoc/classes/Ratch.html +201 -0
  19. data/doc/rdoc/classes/Ratch/ArgvUtils.html +173 -0
  20. data/doc/rdoc/classes/Ratch/ArgvUtils/Ext.html +285 -0
  21. data/doc/rdoc/classes/Ratch/BatchFile.html +207 -0
  22. data/doc/rdoc/classes/Ratch/BatchManager.html +250 -0
  23. data/doc/rdoc/classes/Ratch/BatchScript.html +127 -0
  24. data/doc/rdoc/classes/Ratch/Batchable.html +373 -0
  25. data/doc/rdoc/classes/Ratch/Build.html +321 -0
  26. data/doc/rdoc/classes/Ratch/BuildManager.html +319 -0
  27. data/doc/rdoc/classes/Ratch/Buildable.html +202 -0
  28. data/doc/rdoc/classes/Ratch/ConfigUtils.html +281 -0
  29. data/doc/rdoc/classes/Ratch/ConsoleUtils.html +189 -0
  30. data/doc/rdoc/classes/Ratch/EmailUtils.html +209 -0
  31. data/doc/rdoc/classes/Ratch/FileUtils.html +674 -0
  32. data/doc/rdoc/classes/Ratch/GeneralOptions.html +430 -0
  33. data/doc/rdoc/classes/Ratch/Task.html +201 -0
  34. data/doc/rdoc/classes/Ratch/TaskManager.html +330 -0
  35. data/doc/rdoc/classes/Ratch/Taskable.html +231 -0
  36. data/doc/rdoc/classes/Ratch/UploadUtils.html +566 -0
  37. data/doc/rdoc/created.rid +1 -0
  38. data/doc/rdoc/files/COPYING.html +1003 -0
  39. data/{demo/doc → doc}/rdoc/files/README.html +36 -5
  40. data/doc/rdoc/files/lib/ratch/argvutils_rb.html +131 -0
  41. data/doc/rdoc/files/lib/ratch/batch_rb.html +155 -0
  42. data/doc/rdoc/files/lib/ratch/batchable_rb.html +131 -0
  43. data/doc/rdoc/files/lib/ratch/batchfile_rb.html +148 -0
  44. data/doc/rdoc/files/lib/ratch/buildable_rb.html +131 -0
  45. data/doc/rdoc/files/lib/ratch/consoleutils_rb.html +131 -0
  46. data/{demo/doc/rdoc/files/lib/foo/foo_rb.html → doc/rdoc/files/lib/ratch/emailutils_rb.html} +35 -41
  47. data/doc/rdoc/files/lib/ratch/facets/multiglob_rb.html +137 -0
  48. data/doc/rdoc/files/lib/ratch/fileutils_rb.html +139 -0
  49. data/doc/rdoc/files/lib/ratch/options_rb.html +131 -0
  50. data/doc/rdoc/files/lib/ratch/taskable_rb.html +131 -0
  51. data/doc/rdoc/files/lib/ratch/uploadutils_rb.html +150 -0
  52. data/doc/rdoc/fr_class_index.html +48 -0
  53. data/doc/rdoc/fr_file_index.html +41 -0
  54. data/doc/rdoc/fr_method_index.html +133 -0
  55. data/{demo/doc → doc}/rdoc/index.html +1 -1
  56. data/{demo/doc → doc}/rdoc/rdoc-style.css +0 -0
  57. data/doc/scrap/flexihead-flip.jpg +0 -0
  58. data/doc/scrap/flexihead.jpg +0 -0
  59. data/doc/scrap/head1.jpg +0 -0
  60. data/doc/scrap/ratch.jpg +0 -0
  61. data/doc/scrap/ratch1.png +0 -0
  62. data/doc/scrap/ratch2.jpg +0 -0
  63. data/doc/scrap/ratch3.png +0 -0
  64. data/doc/scrap/red-ratch.jpg +0 -0
  65. data/doc/scrap/redratchet.jpg +0 -0
  66. data/doc/scrap/ruby-kit/ruby.png +0 -0
  67. data/doc/scrap/scrap.red +256 -0
  68. data/doc/sitemap.yaml +10 -0
  69. data/doc/siteparts/index.red +100 -0
  70. data/doc/siteparts/layout.rhtml +56 -0
  71. data/doc/siteparts/tutorial.red +578 -0
  72. data/doc/style.css +112 -0
  73. data/doc/tutorial.html +722 -0
  74. data/lib/ratch/batch.rb +417 -30
  75. data/lib/ratch/{argvutils.rb → batch/argvutils.rb} +27 -19
  76. data/lib/ratch/batch/build.rb +95 -0
  77. data/lib/ratch/{consoleutils.rb → batch/consoleutils.rb} +0 -0
  78. data/lib/ratch/{emailutils.rb → batch/emailutils.rb} +0 -0
  79. data/lib/ratch/{fileutils.rb → batch/fileutils.rb} +32 -32
  80. data/lib/ratch/{options.rb → batch/options.rb} +0 -0
  81. data/lib/ratch/batch/task.rb +43 -0
  82. data/lib/ratch/manager.rb +34 -0
  83. data/lib/ratch/project/information.rb +257 -0
  84. data/lib/ratch/project/package.rb +82 -0
  85. data/lib/ratch/project/project.rb +531 -0
  86. data/lib/ratch/project/release.rb +112 -0
  87. data/lib/ratch/support/filetest.rb +29 -0
  88. data/lib/ratch/support/setuputils.rb +124 -0
  89. data/lib/ratch/support/signiture.rb +252 -0
  90. data/lib/ratch/support/stage.rb +292 -0
  91. data/lib/ratch/toolset/ruby/pack/gem +85 -0
  92. data/lib/ratch/toolset/ruby/pack/tgz +85 -0
  93. data/lib/ratch/toolset/ruby/{crosstest → test/crosstest} +0 -0
  94. data/lib/ratch/toolset/ruby/{extest → test/extest} +0 -0
  95. data/lib/ratch/toolset/ruby/{isotest → test/isotest} +0 -0
  96. data/lib/ratch/toolset/ruby/{load → test/load} +0 -0
  97. data/lib/ratch/toolset/ruby/{loadtest → test/loadtest} +0 -0
  98. data/lib/ratch/toolset/ruby/{syntax → test/syntax} +0 -0
  99. data/lib/ratch/toolset/ruby/{test → test/test} +0 -0
  100. data/log/{history.rd → history} +6 -0
  101. data/log/{todo.rd → todo} +0 -0
  102. data/meta/MANIFEST +52 -36
  103. data/meta/ROLLRC +2 -0
  104. data/meta/icli.yaml +16 -0
  105. data/meta/{ratch-0.2.3.roll → project.yaml} +1 -7
  106. data/task/release +12 -0
  107. data/{lib/ratch → work/old}/batchfile.rb +0 -0
  108. data/work/project-old.rb +67 -0
  109. data/work/scrap/install +89 -0
  110. data/work/scrap/install.0 +49 -0
  111. data/work/scrap/install.1 +63 -0
  112. data/work/scrap/ludo +25 -0
  113. data/work/scrap/oldtaskable.rb +573 -0
  114. data/work/scrap/ratch.man +39 -0
  115. data/work/scrap/taskable-simple.rb +42 -0
  116. data/work/scrap/taskable.rb +120 -0
  117. metadata +170 -72
  118. data/demo/doc/rdoc/created.rid +0 -1
  119. data/demo/doc/rdoc/fr_class_index.html +0 -26
  120. data/demo/doc/rdoc/fr_file_index.html +0 -28
  121. data/demo/doc/rdoc/fr_method_index.html +0 -27
  122. data/demo/task/config.yaml +0 -2
  123. data/lib/ratch/batchable.rb +0 -169
  124. data/lib/ratch/buildable.rb +0 -182
  125. data/lib/ratch/configutils.rb +0 -132
  126. data/lib/ratch/facets/multiglob.rb +0 -160
  127. data/lib/ratch/taskable.rb +0 -152
  128. data/log/recent.rd +0 -8
  129. data/task/config.yaml +0 -10
@@ -1,5 +1,11 @@
1
1
  = Ratch Revision History
2
2
 
3
+ == 0.3.0 / 2007-12-
4
+
5
+ * Reorganized batch scripts --eventually to simplify the code a bit more.
6
+ * Made bin? and safe? functions of FileTest.
7
+ * Added #rollrc allows quick access to contents of roll metadata file.
8
+
3
9
  == 0.2.3 / 2007-11-12
4
10
 
5
11
  * Major Changes
File without changes
@@ -5,23 +5,11 @@ bin
5
5
  bin/lt
6
6
  bin/ludo
7
7
  bin/ratch
8
+ bin/ratch-find
8
9
  demo
9
- demo/README
10
10
  demo/WILMA
11
+ demo/XR
11
12
  demo/doc
12
- demo/doc/rdoc
13
- demo/doc/rdoc/classes
14
- demo/doc/rdoc/created.rid
15
- demo/doc/rdoc/files
16
- demo/doc/rdoc/files/README.html
17
- demo/doc/rdoc/files/lib
18
- demo/doc/rdoc/files/lib/foo
19
- demo/doc/rdoc/files/lib/foo/foo_rb.html
20
- demo/doc/rdoc/fr_class_index.html
21
- demo/doc/rdoc/fr_file_index.html
22
- demo/doc/rdoc/fr_method_index.html
23
- demo/doc/rdoc/index.html
24
- demo/doc/rdoc/rdoc-style.css
25
13
  demo/lib
26
14
  demo/lib/foo
27
15
  demo/lib/foo/foo.rb
@@ -39,45 +27,59 @@ demo/task/task
39
27
  demo/task/tryme
40
28
  lib
41
29
  lib/ratch
42
- lib/ratch/argvutils.rb
30
+ lib/ratch/batch
31
+ lib/ratch/batch/argvutils.rb
32
+ lib/ratch/batch/build.rb
33
+ lib/ratch/batch/configutils.rb
34
+ lib/ratch/batch/consoleutils.rb
35
+ lib/ratch/batch/emailutils.rb
36
+ lib/ratch/batch/fileutils.rb
37
+ lib/ratch/batch/options.rb
38
+ lib/ratch/batch/task.rb
43
39
  lib/ratch/batch.rb
44
- lib/ratch/batchable.rb
45
- lib/ratch/batchfile.rb
46
- lib/ratch/buildable.rb
47
- lib/ratch/configutils.rb
48
- lib/ratch/consoleutils.rb
49
- lib/ratch/emailutils.rb
50
- lib/ratch/facets
51
- lib/ratch/facets/multiglob.rb
52
- lib/ratch/fileutils.rb
53
- lib/ratch/options.rb
54
- lib/ratch/taskable.rb
40
+ lib/ratch/manager.rb
41
+ lib/ratch/project
42
+ lib/ratch/project/information.rb
43
+ lib/ratch/project/package.rb
44
+ lib/ratch/project/project.rb
45
+ lib/ratch/project/release.rb
46
+ lib/ratch/support
47
+ lib/ratch/support/filetest.rb
48
+ lib/ratch/support/setuputils.rb
49
+ lib/ratch/support/signiture.rb
50
+ lib/ratch/support/stage.rb
55
51
  lib/ratch/toolset
56
52
  lib/ratch/toolset/ruby
57
53
  lib/ratch/toolset/ruby/announce
58
- lib/ratch/toolset/ruby/crosstest
59
- lib/ratch/toolset/ruby/extest
60
54
  lib/ratch/toolset/ruby/install
61
- lib/ratch/toolset/ruby/isotest
62
- lib/ratch/toolset/ruby/load
63
- lib/ratch/toolset/ruby/loadtest
64
55
  lib/ratch/toolset/ruby/notes
56
+ lib/ratch/toolset/ruby/pack
57
+ lib/ratch/toolset/ruby/pack/gem
58
+ lib/ratch/toolset/ruby/pack/tgz
65
59
  lib/ratch/toolset/ruby/publish
66
60
  lib/ratch/toolset/ruby/rdoc
67
61
  lib/ratch/toolset/ruby/setup
68
62
  lib/ratch/toolset/ruby/stats
69
- lib/ratch/toolset/ruby/syntax
63
+ lib/ratch/toolset/ruby/svn
70
64
  lib/ratch/toolset/ruby/test
65
+ lib/ratch/toolset/ruby/test/crosstest
66
+ lib/ratch/toolset/ruby/test/extest
67
+ lib/ratch/toolset/ruby/test/isotest
68
+ lib/ratch/toolset/ruby/test/load
69
+ lib/ratch/toolset/ruby/test/loadtest
70
+ lib/ratch/toolset/ruby/test/syntax
71
+ lib/ratch/toolset/ruby/test/test
71
72
  lib/ratch/uploadutils.rb
72
73
  log
73
- log/history.rd
74
- log/recent.rd
75
- log/todo.rd
74
+ log/history
75
+ log/todo
76
76
  man
77
77
  man/ratch.man
78
78
  meta
79
79
  meta/MANIFEST
80
- meta/ratch-0.2.3.roll
80
+ meta/ROLLRC
81
+ meta/icli.yaml
82
+ meta/project.yaml
81
83
  task
82
84
  task/clobber
83
85
  task/clobber/package
@@ -85,6 +87,20 @@ task/config.yaml
85
87
  task/man
86
88
  task/publish
87
89
  task/rdoc
90
+ task/release
88
91
  task/setup
89
92
  task/stats
90
93
  test
94
+ work
95
+ work/old
96
+ work/old/batchfile.rb
97
+ work/project-old.rb
98
+ work/scrap
99
+ work/scrap/install
100
+ work/scrap/install.0
101
+ work/scrap/install.1
102
+ work/scrap/ludo
103
+ work/scrap/oldtaskable.rb
104
+ work/scrap/ratch.man
105
+ work/scrap/taskable-simple.rb
106
+ work/scrap/taskable.rb
@@ -0,0 +1,2 @@
1
+ ratch 0.3.0 beta (2007-11-18)
2
+ lib/ratch
@@ -0,0 +1,16 @@
1
+ ---
2
+ rubyforge:
3
+ project : proutils
4
+ username : transami
5
+
6
+ release:
7
+ store : pkg
8
+ package : ratch
9
+ notelog : README
10
+ changelog : log/recent.rd
11
+
12
+ publish: {}
13
+
14
+ announce:
15
+ message: README
16
+
@@ -11,7 +11,7 @@ author : Thomas Sawyer <transfire@gmail.com>
11
11
  created : "2007-08-09"
12
12
  homepage : "http://proutils.rubyforge.org"
13
13
  download : "https://rubyforge.org/frs/?group_id=4411"
14
- repository : "http://proutils.rubyforge.org/ratch"
14
+ repository : "http://proutils.rubyforge.org/svn/ratch"
15
15
  slogan : Ratch It Up!
16
16
 
17
17
  lib_path:
@@ -19,9 +19,3 @@ lib_path:
19
19
 
20
20
  formats : [gem, zip]
21
21
 
22
- #rubyforge:
23
- # project : protutils
24
- # username : transami
25
- # groupid : 4411
26
- # package : ratch
27
-
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # release packages
4
+
5
+ main :release do
6
+ fname = Dir.glob('meta/*.roll').first
7
+ pname = File.basename(fname).chomp('.roll')
8
+ name, version = *pname.split('-')
9
+
10
+ icli "rubyforge release --version=#{version}"
11
+ end
12
+
File without changes
@@ -0,0 +1,67 @@
1
+ # = TITLE:
2
+ #
3
+ # Project
4
+ #
5
+ # = COPYING:
6
+ #
7
+ # Copyright (c) 2007 Psi T Corp.
8
+ #
9
+ # This file is part of the ProUtils' Box program.
10
+ #
11
+ # Box is free software: you can redistribute it and/or modify
12
+ # it under the terms of the GNU General Public License as published by
13
+ # the Free Software Foundation, either version 3 of the License, or
14
+ # (at your option) any later version.
15
+ #
16
+ # Box is distributed in the hope that it will be useful,
17
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ # GNU General Public License for more details.
20
+ #
21
+ # You should have received a copy of the GNU General Public License
22
+ # along with Box. If not, see <http://www.gnu.org/licenses/>.
23
+
24
+ require 'facets/filelist'
25
+ require 'box/general'
26
+
27
+
28
+ module Box
29
+
30
+ # Project Class
31
+ #
32
+ # The Project class contains three sets of metadata. The first is the
33
+ # typical general information about a project --title, description, homepage, etc.
34
+ # This information is essentially static. Once set, it will probably never vary.
35
+ # The second is default packaging informaiton. These both come from the General base
36
+ # class. The third set is default build information, which may vary well for various
37
+ # packages types, as this information may need to be overridden for specific
38
+ # platform builds and package formats. This information describes how to
39
+ # pack this project into various packages. Hecne it does not belong to the Package
40
+ # class itself.
41
+
42
+ class Project < General
43
+
44
+
45
+ # # Package formats to create (tar.gz, zip, gem, deb, etc.)
46
+ # # Defaults to 'zip' since it's the most universal.
47
+ # #
48
+ # # TODO: Fewer name choices please!!!
49
+ #
50
+ # attr_accessor :format, :formats, :type, :types do
51
+ # @format || ['zip']
52
+ # end
53
+ #
54
+ # # Where to store package files. Defaults to +pkg/.
55
+ # attr_accessor :store do
56
+ # @store || 'pkg'
57
+ # end
58
+ #
59
+ # # Where to stage a package.
60
+ # attr_accessor :stage # do
61
+ # # @stage || name-verison-platform
62
+ # #end
63
+
64
+
65
+ end
66
+
67
+ end
@@ -0,0 +1,89 @@
1
+ # Magic Rollerball Installer
2
+ #
3
+ #
4
+
5
+ PROJECT_NAME = 'multiton'
6
+ PROJECT_VERSION = '2.1.0'
7
+
8
+ ##################
9
+
10
+ require 'fileutils'
11
+ require 'rbconfig'
12
+
13
+ include FileUtils::DryRun
14
+
15
+
16
+ rubyprefix = Config::CONFIG['prefix']
17
+ sitelibdir = Config::CONFIG['sitelibdir']
18
+
19
+
20
+ PREFIX = ENV['PREFIX'] || rubyprefix
21
+
22
+ RUBYLIB = if PREFIX == rubyprefix then
23
+ sitelibdir
24
+ else
25
+ File.join(PREFIX, sitelibdir[rubyprefix.size..-1])
26
+ end
27
+
28
+ ROLLLIB = File.join(File.dirname(RUBYLIB), "rolls", File.basename(RUBYLIB))
29
+
30
+ RUBY_DEBUG = ENV['RUBY_DEBUG']
31
+ RUBY_FLAGS = ENV['RUBY_FLAGS'] ||
32
+ "-w -I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}" +
33
+ (RUBY_DEBUG ? " #{RUBY_DEBUG}" : '')
34
+
35
+ p PREFIX
36
+ p RUBYLIB
37
+ p ROLLLIB
38
+ #p RUBY_DEBUG
39
+ #p RUBY_FLAGS
40
+
41
+ HERE = File.expand_path(File.dirname(__FILE__))
42
+ DEST = File.join(ROLLLIB, PROJECT_NAME, PROJECT_VERSION)
43
+
44
+ files = Dir.glob("**/*")
45
+ files -= Dir.glob("INSTALL")
46
+ files -= Dir.glob("pkg/**/*") + ['pkg']
47
+
48
+ p HERE
49
+ p DEST
50
+ p files
51
+
52
+ mkdir_p DEST unless test ?d, DEST
53
+
54
+
55
+ # Install libs
56
+
57
+ def project_install(files)
58
+ bin_files = files.grep(/^bin/)
59
+
60
+ (files - bin_files).each do |file|
61
+ install file, DEST, :mode => 0444
62
+ end
63
+
64
+ bin_files.each do |file|
65
+ install file, DEST, :mode => 0555
66
+ end
67
+ end
68
+
69
+
70
+ # Change modes
71
+
72
+ def project_chmod(files)
73
+ bin_files = Files.grep(/^bin/)
74
+
75
+ (files - bin_files).each do |file|
76
+ chmod File.join(DEST, file), 0444
77
+ end
78
+
79
+ bin_files.each do |file|
80
+ chmod File.join(DEST, file), 0555
81
+ end
82
+ end
83
+
84
+
85
+ if HERE == DEST
86
+ project_chmod(files)
87
+ else
88
+ project_install(files)
89
+ end
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # install package to site_ruby
4
+
5
+ # This tool installs the package to site_ruby
6
+ # using Ruby's defualt configuration settings.
7
+ # If you want to change these you can can supply
8
+ # config settings for 'prefix' and/or 'sitedir'.
9
+
10
+ system_prefix = Config::CONFIG['prefix']
11
+ system_libdir = Config::CONFIG['sitelibdir']
12
+
13
+ config = config_load('install')
14
+
15
+ prefix = config['prefix'] || system_prefix
16
+ libdir = config['libdir']
17
+
18
+ unless libdir
19
+ if (prefix == system_prefix) then
20
+ libdir = system_libdir
21
+ else
22
+ libdir = File.join(prefix, system_libdir[system_prefix.size..-1])
23
+ end
24
+ end
25
+
26
+ # TODO Probably should get files from manifest, if it exists.
27
+ # files = projectinfo.filelist
28
+ files = Dir.glob("{lib,ext,bin}/**/*").select{ |f| file?(f) }
29
+
30
+ lib_files = files.grep(/^(lib|ext)/)
31
+ bin_files = files.grep(/^bin/)
32
+
33
+ # Copy files to proper locations.
34
+
35
+ lib_files.each do |file|
36
+ dest = File.dirname(file).sub('lib/', '')
37
+ dest = File.join(libdir, dest)
38
+ #dest.sub!(/(core|more)\//, '') # SPECIAL FOR FACETS !!!!!
39
+ mkdir_p dest unless dir?(dest)
40
+ install file, dest, :mode => 0444
41
+ end
42
+
43
+ bin_files.each do |file|
44
+ dest = File.dirname(file)
45
+ dest = File.join(prefix, dest)
46
+ mkdir_p dest unless dir?(dest)
47
+ install file, dest, :mode => 0555
48
+ end
49
+
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # install package to site_ruby
4
+ #
5
+ # This tool installs the package to site_ruby
6
+ # using Ruby's defualt configuration settings.
7
+ # If you want to change these you can can supply
8
+ # config settings for 'prefix' and/or 'sitedir'.
9
+
10
+ main :install do
11
+
12
+ system_prefix = Config::CONFIG['prefix']
13
+ system_libdir = Config::CONFIG['sitelibdir']
14
+
15
+ config = config_load('install')
16
+
17
+ prefix = config['prefix'] || system_prefix
18
+ libdir = config['libdir']
19
+
20
+ unless libdir
21
+ if (prefix == system_prefix) then
22
+ libdir = system_libdir
23
+ else
24
+ libdir = File.join(prefix, system_libdir[system_prefix.size..-1])
25
+ end
26
+ end
27
+
28
+ # TODO Probably should get files from manifest, if it exists.
29
+ # files = projectinfo.filelist
30
+ files = Dir.glob("{lib,ext,bin}/**/*").select{ |f| File.file?(f) }
31
+
32
+ lib_files = files.grep(/^(lib|ext)/)
33
+ bin_files = files.grep(/^bin/)
34
+
35
+ # Copy files to proper locations.
36
+
37
+ lib_files.each do |file|
38
+ dest = File.dirname(file).sub('lib/', '')
39
+ dest = File.join(libdir, dest)
40
+ #dest.sub!(/(core|more)\//, '') # SPECIAL FOR FACETS !!!!!
41
+ if noharm?
42
+ puts "mkdir -p #{dest}"
43
+ puts "install -m 0444 #{file} #{dest}"
44
+ else
45
+ mkdir_p dest unless File.directory?(dest)
46
+ install file, dest, :mode => 0444
47
+ end
48
+ end
49
+
50
+ bin_files.each do |file|
51
+ dest = File.dirname(file)
52
+ dest = File.join(prefix, dest)
53
+ if noharm?
54
+ puts "mkdir -p #{dest}"
55
+ puts "install -m 0555 #{file} #{dest}"
56
+ else
57
+ mkdir_p dest unless File.directory?(dest)
58
+ install file, dest, :mode => 0555
59
+ end
60
+ end
61
+
62
+ end
63
+