Sha256: add05c038a00fade3c9f251bca7063913f27a6c1f21759b51d1bd1a6c14ecfbf

Contents?: true

Size: 713 Bytes

Versions: 14

Compression:

Stored size: 713 Bytes

Contents

#!/usr/bin/env ruby

require 'rbconfig'
include Config
require 'fileutils'
include FileUtils::Verbose

if $DEBUG
  def install(*a)
    p [ :install ] + a
  end

  def mkdir_p(*a)
    p [ :mkdir_p ] + a
  end
end

file = File.join('lib', 'spruz.rb')
dst = CONFIG["sitelibdir"]
install file, File.join(dst, File.join('lib/spruz.rb'))
src = File.join(*%w[lib spruz *.rb])
dst = File.join(CONFIG["sitelibdir"], 'spruz')
mkdir_p dst
for file in Dir[src]
  install file, File.join(dst, file)
end
src = File.join(*%w[lib spruz xt *.rb])
dst = File.join(CONFIG["sitelibdir"], 'spruz', 'xt')
mkdir_p dst
for file in Dir[src]
  install file, File.join(dst, file)
end
install 'bin/enum', File.join(CONFIG['bindir'], 'enum')

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spruz-0.2.10 install.rb
spruz-0.2.9 install.rb
spruz-0.2.8 install.rb
spruz-0.2.7 install.rb
spruz-0.2.6 install.rb
spruz-0.2.5 install.rb
spruz-0.2.2 install.rb
spruz-0.2.1 install.rb
spruz-0.2.0 install.rb
spruz-0.1.5 install.rb
spruz-0.1.3 install.rb
spruz-0.1.2 install.rb
spruz-0.1.1 install.rb
spruz-0.1.0 install.rb