blob: 9d3ae12d8c7aa2ffe23b25fa692e78cd04e1a9f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env ruby
require 'fileutils'
include FileUtils::Verbose
require 'rbconfig'
include\
begin
RbConfig
rescue NameError
Config
end
sitelibdir = CONFIG["sitelibdir"]
cd 'lib' do
install('json.rb', sitelibdir)
mkdir_p File.join(sitelibdir, 'json')
for file in Dir['json/**/*}']
d = File.join(sitelibdir, file)
mkdir_p File.dirname(d)
install(file, d)
end
end
warn " *** Installed PURE ruby library."
|