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