instiki/vendor/rubyzip-0.5.8/install.rb

23 lines
492 B
Ruby
Raw Normal View History

2005-01-15 21:26:54 +01:00
#!/usr/bin/env ruby
$VERBOSE = true
require 'rbconfig'
require 'find'
require 'ftools'
include Config
files = %w{ stdrubyext.rb ioextras.rb zip.rb zipfilesystem.rb ziprequire.rb tempfile_bugfixed.rb }
INSTALL_DIR = File.join(CONFIG["sitelibdir"], "zip")
File.makedirs(INSTALL_DIR)
2005-04-10 18:55:44 +02:00
SOURCE_DIR = File.join(File.dirname($0), "lib/zip")
2005-01-15 21:26:54 +01:00
files.each {
|filename|
installPath = File.join(INSTALL_DIR, filename)
2005-04-10 18:55:44 +02:00
File::install(File.join(SOURCE_DIR, filename), installPath, 0644, true)
2005-01-15 21:26:54 +01:00
}