Files
CPPKoans/scripts/replace_expectations.rb
2012-04-18 22:57:52 +02:00

26 lines
604 B
Ruby
Executable File

puts File.realpath(__FILE__)
require './scripts/replacer.rb'
# this line has been replaced with int _ instead of string:
# expectThat("in fact, it's a pointer manipulation II",_______,string(s2+16));
sourcedirname = "CPPKoans"
puts "WARNING - this will modify the actual source files!"
puts "if you want to continue type 'yes'"
confirmation = gets
confirmation.strip!
confirmation = "yes"
if ("yes" == confirmation)
puts "OK...."
r = Replacer.new
r.doit File.join(File.dirname(File.realpath(__FILE__)),'..',sourcedirname)
else
puts "not doing anything"
end