Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3c6f7f6d3f
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.533 kb
require 'ftools'
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
File.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
File.chmod(0700, "configure")
Jump to Line
Something went wrong with that request. Please try again.