2007-01-22 14:43:50 +01:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
$VERBOSE = true
|
|
|
|
|
|
|
|
require 'rbconfig'
|
|
|
|
require 'find'
|
2009-12-23 09:19:16 +01:00
|
|
|
require 'fileutils'
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
include Config
|
|
|
|
|
|
|
|
files = %w{ stdrubyext.rb ioextras.rb zip.rb zipfilesystem.rb ziprequire.rb tempfile_bugfixed.rb }
|
|
|
|
|
|
|
|
INSTALL_DIR = File.join(CONFIG["sitelibdir"], "zip")
|
2009-12-23 09:19:16 +01:00
|
|
|
FileUtils.makedirs(INSTALL_DIR)
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
SOURCE_DIR = File.join(File.dirname($0), "lib/zip")
|
|
|
|
|
|
|
|
files.each {
|
|
|
|
|filename|
|
|
|
|
installPath = File.join(INSTALL_DIR, filename)
|
2009-12-23 09:19:16 +01:00
|
|
|
FileUtils::install(File.join(SOURCE_DIR, filename), installPath, 0644,
|
|
|
|
:verbose => true)
|
2007-01-22 14:43:50 +01:00
|
|
|
}
|