initial import boxroom 0.6.2
[boxroom-stian.git] / vendor / plugins / rubyzip-0.9.1 / install.rb
blob405e2b0b75a17fb44cdb8d1a0de368705c1d71f9
1 #!/usr/bin/env ruby
3 $VERBOSE = true
5 require 'rbconfig'
6 require 'find'
7 require 'ftools'
9 include Config
11 files = %w{ stdrubyext.rb ioextras.rb zip.rb zipfilesystem.rb ziprequire.rb tempfile_bugfixed.rb }
13 INSTALL_DIR = File.join(CONFIG["sitelibdir"], "zip")
14 File.makedirs(INSTALL_DIR)
16 SOURCE_DIR = File.join(File.dirname($0), "lib/zip")
18 files.each { 
19   |filename|
20   installPath = File.join(INSTALL_DIR, filename)
21   File::install(File.join(SOURCE_DIR, filename), installPath, 0644, true)