rubyzip/install.rb

22 lines
413 B
Ruby
Raw Normal View History

2002-03-22 05:12:19 +08:00
#!/usr/bin/env ruby
$VERBOSE = true
require 'rbconfig'
require 'find'
require 'ftools'
include Config
files = %w{ stdrubyext.rb zip.rb zipfilesystem.rb ziprequire.rb }
2002-03-22 05:12:19 +08:00
INSTALL_DIR = File.join(CONFIG["sitelibdir"], "zip")
File.makedirs(INSTALL_DIR)
2003-08-21 22:05:57 +08:00
Dir.chdir "zip"
2002-03-22 05:12:19 +08:00
files.each {
|filename|
installPath = File.join(INSTALL_DIR, filename)
2002-03-22 05:12:19 +08:00
File::install(filename, installPath, 0644, true)
}
2003-08-21 22:05:57 +08:00
Dir.chdir ".."