Skip to content
This repository
Newer
Older
100755 24 lines (21 sloc) 0.441 kb
10f03df1 »
2009-08-24 initial commit
1 #!/usr/bin/env ruby
2
3 require 'fileutils'
4 include FileUtils::Verbose
dad9fbfb »
2012-02-11 Clean up code a bit
5 require 'rbconfig'
6 include\
7 begin
8 RbConfig
9 rescue NameError
10 Config
11 end
10f03df1 »
2009-08-24 initial commit
12
13 sitelibdir = CONFIG["sitelibdir"]
14 cd 'lib' do
15 install('json.rb', sitelibdir)
16 mkdir_p File.join(sitelibdir, 'json')
f729d47a »
2011-09-12 Extract utils out of this library into json-utils
17 for file in Dir['json/**/*}']
10f03df1 »
2009-08-24 initial commit
18 d = File.join(sitelibdir, file)
19 mkdir_p File.dirname(d)
20 install(file, d)
21 end
22 end
23 warn " *** Installed PURE ruby library."
Something went wrong with that request. Please try again.