Sha256: cf6c06bdea559633c79db5d3d239aaab2c11d18df0e98d5fe0676a6b195b927a

Contents?: true

Size: 741 Bytes

Versions: 32

Compression:

Stored size: 741 Bytes

Contents

require 'rbconfig'
require 'find'
require 'ftools'

include Config

# this was adapted from rdoc's install.rb by ways of Log4r

$sitedir = CONFIG["sitelibdir"]
unless $sitedir
  version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
  $libdir = File.join(CONFIG["libdir"], "ruby", version)
  $sitedir = $:.find {|x| x =~ /site_ruby/ }
  if !$sitedir
    $sitedir = File.join($libdir, "site_ruby")
  elsif $sitedir !~ Regexp.quote(version)
    $sitedir = File.join($sitedir, version)
  end
end

# the acual gruntwork
Dir.chdir("lib")

Find.find("feed_tools", "feed_tools.rb") { |f|
  if f[-3..-1] == ".rb"
    File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
  else
    File::makedirs(File.join($sitedir, *f.split(/\//)))
  end
}

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
caironoleto-feedtools-0.2.31 install.rb
feedtools-0.2.1 install.rb
feedtools-0.2.12 install.rb
feedtools-0.2.11 install.rb
feedtools-0.2.0 install.rb
feedtools-0.2.10 install.rb
feedtools-0.2.13 install.rb
feedtools-0.1.0 install.rb
feedtools-0.2.14 install.rb
feedtools-0.2.15 install.rb
feedtools-0.2.17 install.rb
feedtools-0.2.16 install.rb
feedtools-0.2.18 install.rb
feedtools-0.2.19 install.rb
feedtools-0.2.21 install.rb
feedtools-0.2.20 install.rb
feedtools-0.2.2 install.rb
feedtools-0.2.22 install.rb
feedtools-0.2.23 install.rb
feedtools-0.2.24 install.rb