fix entity reference.
[chise/ruby.git] / install.rb
1 #!/usr/bin/env ruby
2 # by eto 2003-0109
3
4 def usage()
5   print "Usage: install.rb <file>\n"
6   print "% ./install.rb src/chise.rb\n"
7   exit
8 end
9
10 usage if ARGV.length < 1
11 file = ARGV[0]
12 usage if ! FileTest.file?(file)
13
14 require 'rbconfig'
15 ruby_sitedir = Config::CONFIG["sitedir"]
16 cmd = "cp #{file} #{ruby_sitedir}"
17 p cmd
18 system cmd
19
20 #----------------------------------------------------------------------end.