Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 24 lines (21 sloc) 0.441 kB
10f03df @flori initial commit
authored
1 #!/usr/bin/env ruby
2
3 require 'fileutils'
4 include FileUtils::Verbose
dad9fbf @flori Clean up code a bit
authored
5 require 'rbconfig'
6 include\
7 begin
8 RbConfig
9 rescue NameError
10 Config
11 end
10f03df @flori initial commit
authored
12
13 sitelibdir = CONFIG["sitelibdir"]
14 cd 'lib' do
15 install('json.rb', sitelibdir)
16 mkdir_p File.join(sitelibdir, 'json')
f729d47 @flori Extract utils out of this library into json-utils
authored
17 for file in Dir['json/**/*}']
10f03df @flori initial commit
authored
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.