Sha256: 8218194bb4420867124d28200649f12fc2919fd0529fc0c81709e1a73e4dc74c

Contents?: true

Size: 546 Bytes

Versions: 35

Compression:

Stored size: 546 Bytes

Contents

require 'fileutils'
require 'find'

def process(file)
  puts "Post-processing #{file}"
  File.open(file) do |input|
    File.open("#{file}.pp", "w") do |output|
      input.each_line do |line|
        yield output, line
      end
    end
  end
  FileUtils.mv("#{file}.pp", "#{file}")
end

process("configure") do |out, line|
  # autoconf doesn't properly enclose $srcdir and $am_aux_dir in quotes
  line.gsub!(/([^"'])(\$srcdir)/, '\1"\2"')
  line.gsub!(/([^"'])(\$am_aux_dir)/, '\1\"\2\"')
  out.puts line
end
FileUtils.chmod(0700, "configure")

Version data entries

35 entries across 35 versions & 6 rubygems

Version Path
rice-3.0.0 post-autoconf.rb
rice2-2.2.1 post-autoconf.rb
rice2-2.2.0 post-autoconf.rb
rice-2.2.0 post-autoconf.rb
rice-2.1.3 post-autoconf.rb
rice-2.1.2 post-autoconf.rb
rice-2.1.1 post-autoconf.rb
rice-2.1.0 post-autoconf.rb
rice-2.0.0 post-autoconf.rb
rice-1.7.0 post-autoconf.rb
rice-1.6.3 post-autoconf.rb
jameskilton-rice-1.2.0 post-autoconf.rb
rice-1.6.2 post-autoconf.rb
rice-1.6.1 post-autoconf.rb
rice-1.6.0 post-autoconf.rb
rice-1.6.0.pre post-autoconf.rb
rice-1.5.3 post-autoconf.rb
rice-1.5.2 post-autoconf.rb
keyme-rice-1.5.1.keyme1 post-autoconf.rb
keyme-rice-1.5.1.keyme post-autoconf.rb