Sha256: 903d1d50164c5c4a69091f03156dc483f36f5f75c77867d75533f2fd3a6191c8

Contents?: true

Size: 628 Bytes

Versions: 15

Compression:

Stored size: 628 Bytes

Contents

#!/usr/bin/env ruby

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

MAKE = ENV['MAKE'] || %w[gmake make].find { |c| system(c, '-v') }

bindir  = CONFIG['bindir']
archdir = CONFIG['sitearchdir']
libdir  = CONFIG['sitelibdir']
dlext   = CONFIG['DLEXT']
cd 'ext' do
  system 'ruby extconf.rb' or exit 1
  system "#{MAKE}" or exit 1
  mkdir_p archdir
  install "amatch.#{dlext}", archdir
end
cd 'bin' do
  filename = 'edit_json.rb'
  install('agrep.rb', bindir)
end
cd 'lib/amatch' do
  mkdir_p d = File.join(libdir, 'amatch')
  install 'version.rb', d
end
warn " *** Installed amatch extension."

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
amatch-0.4.1 install.rb
amatch-0.4.0 install.rb
amatch-0.3.1 install.rb
patmcnally-amatch-0.2.4 install.rb
amatch-0.3.0 install.rb
amatch-rbx-0.2.12 install.rb
amatch-0.2.11 install.rb
amatch-0.2.10 install.rb
amatch-0.2.9 install.rb
amatch-0.2.8 install.rb
amatch-0.2.7 install.rb
amatch-0.2.6 install.rb
amatch-0.2.5-x86-mswin32 install.rb
amatch-0.2.5 install.rb
amatch-0.2.4 install.rb