File: install.rb

package info (click to toggle)
libjson-ruby 0.4.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 268 kB
  • ctags: 329
  • sloc: ruby: 2,672; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby

require 'rbconfig'
require 'fileutils'
include FileUtils::Verbose

include Config

dest = CONFIG["bindir"]
cd 'bin' do
  filename = 'edit_json.rb'
  install(filename, dest)
end
dest = CONFIG["sitelibdir"]
cd 'lib' do
  install('json.rb', dest)
  mkdir_p File.join(dest,'json')
  install(File.join('json', 'editor.rb'), File.join(dest,'json'))
  install(File.join('json', 'json.xpm'), File.join(dest,'json'))
end
  # vim: set et sw=2 ts=2: