2011-06-17 19:15:47 -04:00
|
|
|
#!/usr/bin/ruby
|
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
# tool/update-deps verify makefile dependencies.
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
# Requirements:
|
|
|
|
# gcc 4.5 (for -save-temps=obj option)
|
|
|
|
# GNU make (for -p option)
|
2011-06-17 19:15:47 -04:00
|
|
|
#
|
2014-11-16 04:22:43 -05:00
|
|
|
# Warning: ccache (and similar tools) must be disabled for
|
|
|
|
# -save-temps=obj to work properly.
|
|
|
|
#
|
2013-04-11 08:03:23 -04:00
|
|
|
# Usage:
|
|
|
|
# 1. Compile ruby with -save-temps=obj option.
|
|
|
|
# Ex. ./configure debugflags='-save-temps=obj -g' && make all golf
|
|
|
|
# 2. Run tool/update-deps to show dependency problems.
|
|
|
|
# Ex. ruby tool/update-deps
|
2014-11-15 00:15:49 -05:00
|
|
|
# 3. Use --fix to fix makefiles.
|
|
|
|
# Ex. ruby tool/update-deps --fix
|
|
|
|
#
|
|
|
|
# Other usages:
|
|
|
|
# * Fix makefiles using previously detected dependency problems
|
|
|
|
# Ex. ruby tool/update-deps --actual-fix [file]
|
|
|
|
# "ruby tool/update-deps --fix" is same as "ruby tool/update-deps | ruby tool/update-deps --actual-fix".
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
require 'optparse'
|
|
|
|
require 'stringio'
|
2013-04-11 08:03:23 -04:00
|
|
|
require 'pathname'
|
|
|
|
require 'pp'
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
ENV['LC_ALL'] = 'C'
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
$opt_fix = false
|
|
|
|
$opt_a = false
|
|
|
|
$opt_actual_fix = false
|
2014-11-16 04:22:43 -05:00
|
|
|
$i_not_found = false
|
2014-11-15 00:15:49 -05:00
|
|
|
|
|
|
|
def optionparser
|
|
|
|
op = OptionParser.new
|
|
|
|
op.banner = 'Usage: ruby tool/update-deps'
|
|
|
|
op.def_option('-a', 'show valid dependencies') { $opt_a = true }
|
|
|
|
op.def_option('--fix') { $opt_fix = true }
|
|
|
|
op.def_option('--actual-fix') { $opt_actual_fix = true }
|
|
|
|
op
|
|
|
|
end
|
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
def read_make_deps(cwd)
|
|
|
|
dependencies = {}
|
2013-04-11 10:42:33 -04:00
|
|
|
make_p = `make -p all miniruby ruby golf 2> /dev/null`
|
2013-04-11 08:03:23 -04:00
|
|
|
dirstack = [cwd]
|
2014-11-14 03:37:47 -05:00
|
|
|
curdir = nil
|
2014-11-15 00:15:49 -05:00
|
|
|
make_p.scan(%r{Entering\ directory\ ['`](.*)'|
|
|
|
|
^\#\ (GNU\ Make)\ |
|
|
|
|
^CURDIR\ :=\ (.*)|
|
|
|
|
^([/0-9a-zA-Z._-]+):(.*)\n((?:\#.*\n)*)|
|
|
|
|
^\#\ (Finished\ Make\ data\ base\ on)\ |
|
|
|
|
Leaving\ directory\ ['`](.*)'}x) {
|
2014-11-14 03:37:47 -05:00
|
|
|
directory_enter = $1
|
|
|
|
data_base_start = $2
|
|
|
|
data_base_curdir = $3
|
|
|
|
rule_target = $4
|
|
|
|
rule_sources = $5
|
2014-11-15 00:15:49 -05:00
|
|
|
rule_desc = $6
|
|
|
|
data_base_end = $7
|
|
|
|
directory_leave = $8
|
2014-11-14 03:37:47 -05:00
|
|
|
#p $~
|
|
|
|
if directory_enter
|
|
|
|
enter_dir = Pathname(directory_enter)
|
2013-04-11 08:03:23 -04:00
|
|
|
#p [:enter, enter_dir]
|
|
|
|
dirstack.push enter_dir
|
2014-11-14 03:37:47 -05:00
|
|
|
elsif data_base_start
|
|
|
|
curdir = nil
|
|
|
|
elsif data_base_curdir
|
|
|
|
curdir = Pathname(data_base_curdir)
|
2014-11-15 00:15:49 -05:00
|
|
|
elsif rule_target && rule_sources && rule_desc &&
|
|
|
|
/Modification time never checked/ !~ rule_desc # This pattern match eliminates rules which VPATH is not expanded.
|
2014-11-14 03:37:47 -05:00
|
|
|
target = rule_target
|
|
|
|
deps = rule_sources
|
|
|
|
deps = deps.scan(%r{[/0-9a-zA-Z._-]+})
|
|
|
|
next if /\.o\z/ !~ target.to_s
|
|
|
|
next if /\A\./ =~ target.to_s # skip rules such as ".c.o"
|
|
|
|
#p [curdir, target, deps]
|
2014-11-15 00:15:49 -05:00
|
|
|
dir = curdir || dirstack.last
|
|
|
|
dependencies[dir + target] ||= []
|
|
|
|
dependencies[dir + target] |= deps.map {|dep| dir + dep }
|
2014-11-14 03:37:47 -05:00
|
|
|
elsif data_base_end
|
|
|
|
curdir = nil
|
|
|
|
elsif directory_leave
|
|
|
|
leave_dir = Pathname(directory_leave)
|
2013-04-11 08:03:23 -04:00
|
|
|
#p [:leave, leave_dir]
|
|
|
|
if leave_dir != dirstack.last
|
|
|
|
warn "unexpected leave_dir : #{dirstack.last.inspect} != #{leave_dir.inspect}"
|
2011-06-17 19:15:47 -04:00
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
dirstack.pop
|
|
|
|
end
|
2011-06-17 19:15:47 -04:00
|
|
|
}
|
2013-04-11 08:03:23 -04:00
|
|
|
dependencies
|
|
|
|
end
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
#def guess_compiler_wd(filename, hint0)
|
|
|
|
# hint = hint0
|
|
|
|
# begin
|
|
|
|
# guess = hint + filename
|
|
|
|
# if guess.file?
|
|
|
|
# return hint
|
|
|
|
# end
|
|
|
|
# hint = hint.parent
|
|
|
|
# end while hint.to_s != '.'
|
|
|
|
# raise ArgumentError, "can not find #{filename} (hint: #{hint0})"
|
|
|
|
#end
|
|
|
|
|
|
|
|
def read_single_actual_deps(path_i, cwd)
|
|
|
|
files = {}
|
|
|
|
path_i.each_line.with_index {|line, lineindex|
|
|
|
|
next if /\A\# \d+ "(.*)"/ !~ line
|
|
|
|
files[$1] = lineindex
|
2011-06-17 19:15:47 -04:00
|
|
|
}
|
2013-04-11 08:03:23 -04:00
|
|
|
# gcc emits {# 1 "/absolute/directory/of/the/source/file//"} at 2nd line.
|
|
|
|
compiler_wd = files.keys.find {|f| %r{\A/.*//\z} =~ f }
|
|
|
|
if compiler_wd
|
|
|
|
files.delete compiler_wd
|
|
|
|
compiler_wd = Pathname(compiler_wd.sub(%r{//\z}, ''))
|
2011-06-17 19:15:47 -04:00
|
|
|
else
|
2013-04-11 08:03:23 -04:00
|
|
|
raise "compiler working directory not found"
|
|
|
|
end
|
|
|
|
deps = []
|
|
|
|
files.each_key {|dep|
|
|
|
|
next if %r{\A<.*>\z} =~ dep # omit <command-line>, etc.
|
|
|
|
dep = Pathname(dep)
|
|
|
|
if dep.relative?
|
|
|
|
dep = compiler_wd + dep
|
|
|
|
end
|
|
|
|
if !dep.file?
|
|
|
|
warn "file not found: #{dep}"
|
2011-06-17 19:15:47 -04:00
|
|
|
next
|
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
next if !dep.to_s.start_with?(cwd.to_s) # omit system headers.
|
|
|
|
deps << dep
|
|
|
|
}
|
|
|
|
deps
|
|
|
|
end
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2013-04-11 08:03:23 -04:00
|
|
|
def read_actual_deps(cwd)
|
|
|
|
deps = {}
|
|
|
|
Pathname.glob('**/*.o').sort.each {|fn_o|
|
|
|
|
fn_i = fn_o.sub_ext('.i')
|
2014-11-15 00:15:49 -05:00
|
|
|
if !fn_i.exist?
|
|
|
|
warn "not found: #{fn_i}"
|
2014-11-16 04:22:43 -05:00
|
|
|
$i_not_found = true
|
2014-11-15 00:15:49 -05:00
|
|
|
next
|
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
path_o = cwd + fn_o
|
|
|
|
path_i = cwd + fn_i
|
|
|
|
deps[path_o] = read_single_actual_deps(path_i, cwd)
|
|
|
|
}
|
|
|
|
deps
|
|
|
|
end
|
|
|
|
|
|
|
|
def concentrate(dependencies, cwd)
|
|
|
|
deps = {}
|
|
|
|
dependencies.keys.sort.each {|target|
|
|
|
|
sources = dependencies[target]
|
|
|
|
target = target.relative_path_from(cwd)
|
2014-11-14 03:37:47 -05:00
|
|
|
sources = sources.map {|s|
|
|
|
|
rel = s.relative_path_from(cwd)
|
|
|
|
rel
|
|
|
|
}
|
2013-04-11 08:03:23 -04:00
|
|
|
if %r{\A\.\.(/|\z)} =~ target.to_s
|
|
|
|
warn "out of tree target: #{target}"
|
|
|
|
next
|
|
|
|
end
|
|
|
|
sources = sources.reject {|s|
|
|
|
|
if %r{\A\.\.(/|\z)} =~ s.to_s
|
|
|
|
warn "out of tree source: #{s}"
|
|
|
|
true
|
|
|
|
else
|
|
|
|
false
|
2011-06-17 19:15:47 -04:00
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
}
|
|
|
|
deps[target] = sources
|
|
|
|
}
|
|
|
|
deps
|
|
|
|
end
|
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
def sort_paths(paths)
|
|
|
|
paths.sort_by {|t|
|
2013-04-11 08:03:23 -04:00
|
|
|
ary = t.to_s.split(%r{/})
|
|
|
|
ary.map.with_index {|e, i| i == ary.length-1 ? [0, e] : [1, e] } # regular file first, directories last.
|
|
|
|
}
|
2014-11-15 00:15:49 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def in_makefile(target, source)
|
|
|
|
target = target.to_s
|
|
|
|
source = source.to_s
|
|
|
|
case target
|
|
|
|
when %r{\A[^/]*\z}
|
|
|
|
target2 = "#{target.sub(/\.o\z/, '.$(OBJEXT)')}"
|
|
|
|
case source
|
|
|
|
when 'newline.c', 'miniprelude.c', 'prelude.c' then source2 = source
|
|
|
|
when 'thread_pthread.c' then source2 = '{$(VPATH)}thread_$(THREAD_MODEL).c'
|
|
|
|
when 'thread_pthread.h' then source2 = '{$(VPATH)}thread_$(THREAD_MODEL).h'
|
|
|
|
when 'include/ruby.h' then source2 = '$(hdrdir)/ruby.h'
|
|
|
|
when 'include/ruby/ruby.h' then source2 = '$(hdrdir)/ruby/ruby.h'
|
|
|
|
when 'revision.h' then source2 = '$(srcdir)/revision.h'
|
|
|
|
when 'version.h' then source2 = '$(srcdir)/version.h'
|
|
|
|
when 'include/ruby/version.h' then source2 = '$(srcdir)/include/ruby/version.h'
|
|
|
|
when %r{\A[^/]*\z} then source2 = "{$(VPATH)}#{File.basename source}"
|
|
|
|
when %r{\A\.ext/include/[^/]+/ruby/} then source2 = "{$(VPATH)}#{$'}"
|
|
|
|
when %r{\Ainclude/ruby/} then source2 = "{$(VPATH)}#{$'}"
|
|
|
|
when %r{\Aenc/} then source2 = "{$(VPATH)}#{$'}"
|
|
|
|
when %r{\Amissing/} then source2 = "{$(VPATH)}#{$'}"
|
|
|
|
when %r{\Accan/} then source2 = "$(CCAN_DIR)/#{$'}"
|
|
|
|
when %r{\Adefs/} then source2 = "{$(VPATH)}#{source}"
|
|
|
|
else source2 = "$(top_srcdir)/#{source}"
|
|
|
|
end
|
|
|
|
["common.mk", target2, source2]
|
|
|
|
when %r{\Aenc/}
|
|
|
|
target2 = "#{target.sub(/\.o\z/, '.$(OBJEXT)')}"
|
|
|
|
case source
|
|
|
|
when 'include/ruby.h' then source2 = '$(hdrdir)/ruby.h'
|
|
|
|
when 'include/ruby/ruby.h' then source2 = '$(hdrdir)/ruby/ruby.h'
|
|
|
|
when %r{\A\.ext/include/[^/]+/ruby/} then source2 = $'
|
|
|
|
when %r{\Ainclude/ruby/} then source2 = $'
|
|
|
|
when %r{\Aenc/} then source2 = source
|
|
|
|
else source2 = "$(top_srcdir)/#{source}"
|
|
|
|
end
|
|
|
|
["enc/depend", target2, source2]
|
|
|
|
when %r{\Aext/}
|
|
|
|
unless File.exist?("#{File.dirname(target)}/extconf.rb")
|
|
|
|
warn "not found: #{File.dirname(target)}/extconf.rb"
|
|
|
|
end
|
|
|
|
target2 = File.basename(target)
|
|
|
|
case source
|
|
|
|
when 'include/ruby.h' then source2 = '$(top_srcdir)/include/ruby.h'
|
|
|
|
when %r{\Ainclude/} then source2 = "$(hdrdir)/#{$'}"
|
|
|
|
when %r{\A\.ext/include/[^/]+/ruby/} then source2 = "$(arch_hdrdir)/ruby/#{$'}"
|
|
|
|
when %r{\A#{Regexp.escape File.dirname(target)}/extconf\.h\z} then source2 = "$(RUBY_EXTCONF_H)"
|
|
|
|
when %r{\A#{Regexp.escape File.dirname(target)}/} then source2 = $'
|
|
|
|
when 'id.h' then source2 = '{$(VPATH)}id.h'
|
|
|
|
when 'parse.h' then source2 = '{$(VPATH)}parse.h'
|
|
|
|
when 'lex.c' then source2 = '{$(VPATH)}lex.c'
|
|
|
|
when 'probes.h' then source2 = '{$(VPATH)}probes.h'
|
|
|
|
else source2 = "$(top_srcdir)/#{source}"
|
|
|
|
end
|
|
|
|
["#{File.dirname(target)}/depend", target2, source2]
|
|
|
|
else
|
|
|
|
raise "unexpected target: #{target}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def compare_deps(make_deps, actual_deps, out=$stdout)
|
|
|
|
targets = sort_paths(actual_deps.keys)
|
2013-04-11 08:03:23 -04:00
|
|
|
targets.each {|target|
|
|
|
|
actual_sources = actual_deps[target]
|
|
|
|
if !make_deps.has_key?(target)
|
|
|
|
warn "no makefile dependency for #{target}"
|
|
|
|
else
|
|
|
|
make_sources = make_deps[target]
|
2014-11-15 00:15:49 -05:00
|
|
|
sort_paths(actual_sources | make_sources).each {|source|
|
|
|
|
makefile, target2, source2 = in_makefile(target, source)
|
|
|
|
lines = begin
|
|
|
|
File.readlines(makefile)
|
|
|
|
rescue Errno::ENOENT
|
|
|
|
[]
|
|
|
|
end
|
2014-11-15 06:30:59 -05:00
|
|
|
#depline = "#{target2}: #{source2} \# #{target}: #{source}\n"
|
|
|
|
depline = "#{target2}: #{source2}\n"
|
2014-11-15 00:15:49 -05:00
|
|
|
if !make_sources.include?(source)
|
|
|
|
out.puts "add #{makefile} : #{depline}"
|
|
|
|
elsif !actual_sources.include?(source)
|
|
|
|
if lines.include? depline
|
|
|
|
out.puts "delL #{makefile} : #{depline}" # delL stands for del line
|
|
|
|
else
|
|
|
|
out.puts "delP #{makefile} : #{depline}" # delP stands for del prerequisite
|
|
|
|
end
|
|
|
|
else
|
|
|
|
if $opt_a
|
|
|
|
if lines.include? depline
|
|
|
|
out.puts "okL #{makefile} : #{depline}" # okL stands for ok line
|
|
|
|
else
|
|
|
|
out.puts "okP #{makefile} : #{depline}" # okP stands for ok prerequisite
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|
2011-06-17 19:15:47 -04:00
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
}
|
|
|
|
end
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
def main_show(out=$stdout)
|
2013-04-11 08:03:23 -04:00
|
|
|
cwd = Pathname.pwd
|
|
|
|
make_deps = read_make_deps(cwd)
|
2014-11-14 03:37:47 -05:00
|
|
|
#pp make_deps
|
2013-04-11 08:03:23 -04:00
|
|
|
make_deps = concentrate(make_deps, cwd)
|
|
|
|
#pp make_deps
|
|
|
|
actual_deps = read_actual_deps(cwd)
|
2014-11-15 00:15:49 -05:00
|
|
|
#pp actual_deps
|
2013-04-11 08:03:23 -04:00
|
|
|
actual_deps = concentrate(actual_deps, cwd)
|
|
|
|
#pp actual_deps
|
2014-11-15 00:15:49 -05:00
|
|
|
compare_deps(make_deps, actual_deps, out)
|
|
|
|
end
|
|
|
|
|
|
|
|
def extract_deplines(problems)
|
|
|
|
adds = {}
|
|
|
|
dels = {}
|
|
|
|
problems.each_line {|line|
|
|
|
|
case line
|
2014-11-15 06:30:59 -05:00
|
|
|
when /\Aadd (\S+) : (\S.*\n)\z/
|
2014-11-15 00:15:49 -05:00
|
|
|
(adds[$1] ||= []) << $2
|
2014-11-15 06:30:59 -05:00
|
|
|
when /\AdelL (\S+) : (\S.*\n)\z/
|
2014-11-15 00:15:49 -05:00
|
|
|
(dels[$1] ||= []) << $2
|
2014-11-15 06:30:59 -05:00
|
|
|
when /\AdelP (\S+) : (\S.*\n)\z/
|
2014-11-15 00:15:49 -05:00
|
|
|
(dels[$1] ||= []) << $2
|
2014-11-15 06:30:59 -05:00
|
|
|
when /\AokL (\S+) : (\S.*\n)\z/
|
|
|
|
when /\AokP (\S+) : (\S.*\n)\z/
|
2014-11-15 00:15:49 -05:00
|
|
|
(adds[$1] ||= []) << $2
|
|
|
|
end
|
|
|
|
}
|
|
|
|
return adds, dels
|
|
|
|
end
|
|
|
|
|
2014-11-15 06:30:59 -05:00
|
|
|
DEPENDENCIES_SECTION_START_MARK = "\# AUTOGENERATED DEPENDENCIES START\n"
|
|
|
|
DEPENDENCIES_SECTION_END_MARK = "\# AUTOGENERATED DEPENDENCIES END\n"
|
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
def main_actual_fix(problems)
|
|
|
|
adds, dels = extract_deplines(problems)
|
|
|
|
(adds.keys | dels.keys).sort.each {|makefile|
|
2014-11-15 06:30:59 -05:00
|
|
|
content = begin
|
|
|
|
File.read(makefile)
|
2014-11-15 00:15:49 -05:00
|
|
|
rescue Errno::ENOENT
|
2014-11-15 06:30:59 -05:00
|
|
|
''
|
|
|
|
end
|
|
|
|
if /^#{Regexp.escape DEPENDENCIES_SECTION_START_MARK}((?:.*\n)*)#{Regexp.escape DEPENDENCIES_SECTION_END_MARK}/ =~ content
|
|
|
|
pre_post_part = [$`, $']
|
|
|
|
lines = $1.lines.to_a
|
|
|
|
else
|
|
|
|
pre_post_part = nil
|
|
|
|
lines = []
|
2014-11-15 00:15:49 -05:00
|
|
|
end
|
2014-11-15 06:30:59 -05:00
|
|
|
|
|
|
|
lines_original = lines.dup
|
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
if dels[makefile]
|
|
|
|
lines -= dels[makefile]
|
|
|
|
end
|
|
|
|
if adds[makefile]
|
|
|
|
lines.concat(adds[makefile] - lines)
|
|
|
|
end
|
2014-11-15 06:30:59 -05:00
|
|
|
|
|
|
|
if lines == lines_original
|
|
|
|
next
|
|
|
|
end
|
|
|
|
|
|
|
|
if pre_post_part
|
|
|
|
new_content = [
|
|
|
|
pre_post_part.first,
|
|
|
|
DEPENDENCIES_SECTION_START_MARK,
|
|
|
|
*lines,
|
|
|
|
DEPENDENCIES_SECTION_END_MARK,
|
|
|
|
pre_post_part.last
|
|
|
|
].join
|
2014-11-15 00:15:49 -05:00
|
|
|
tmp_makefile = "#{makefile}.new#{$$}"
|
2014-11-15 06:30:59 -05:00
|
|
|
File.write(tmp_makefile, new_content)
|
2014-11-15 00:15:49 -05:00
|
|
|
File.rename tmp_makefile, makefile
|
2014-11-15 06:30:59 -05:00
|
|
|
puts "modified: #{makefile}"
|
|
|
|
else
|
|
|
|
new_content = [
|
|
|
|
DEPENDENCIES_SECTION_START_MARK,
|
|
|
|
*lines,
|
|
|
|
DEPENDENCIES_SECTION_END_MARK,
|
|
|
|
].join
|
|
|
|
if !File.exist?(makefile)
|
|
|
|
if !lines.empty?
|
|
|
|
File.open(makefile, 'w') {|f|
|
|
|
|
f.print new_content
|
|
|
|
}
|
|
|
|
puts "created: #{makefile}"
|
|
|
|
end
|
|
|
|
else
|
|
|
|
puts "no dependencies section: #{makefile}"
|
|
|
|
(lines_original - lines).each {|line|
|
|
|
|
puts " del: #{line}"
|
|
|
|
}
|
|
|
|
(lines - lines_original).each {|line|
|
|
|
|
puts " add: #{line}"
|
|
|
|
}
|
|
|
|
end
|
2014-11-15 00:15:49 -05:00
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def main_fix
|
|
|
|
problems = StringIO.new
|
|
|
|
main_show(problems)
|
2014-11-15 06:30:59 -05:00
|
|
|
main_actual_fix(problems.string)
|
2014-11-15 00:15:49 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
op = optionparser
|
|
|
|
op.parse!(ARGV)
|
|
|
|
if $opt_actual_fix
|
|
|
|
main_actual_fix(ARGF.read)
|
|
|
|
elsif $opt_fix
|
|
|
|
main_fix
|
|
|
|
else
|
|
|
|
main_show
|
|
|
|
end
|
2013-04-11 08:03:23 -04:00
|
|
|
end
|
2011-06-17 19:15:47 -04:00
|
|
|
|
2014-11-15 00:15:49 -05:00
|
|
|
run
|
2014-11-16 04:22:43 -05:00
|
|
|
if $i_not_found
|
|
|
|
warn "missing *.i files, see help in #$0 and ensure ccache is disabled"
|
|
|
|
end
|