2002-03-22 05:12:19 +08:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
$VERBOSE = true
|
|
|
|
|
|
|
|
require 'rbconfig'
|
|
|
|
require 'find'
|
|
|
|
require 'ftools'
|
|
|
|
|
|
|
|
include Config
|
|
|
|
|
2003-08-21 21:54:32 +08:00
|
|
|
files = %w{ stdrubyext.rb zip.rb zipfilesystem.rb ziprequire.rb }
|
2002-03-22 05:12:19 +08:00
|
|
|
|
2003-08-21 21:54:32 +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|
|
2003-08-21 21:54:32 +08:00
|
|
|
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 ".."
|