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