diff --git a/scripts/replace_expectations.rb b/scripts/replace_expectations.rb index b3cea9d..c052561 100755 --- a/scripts/replace_expectations.rb +++ b/scripts/replace_expectations.rb @@ -1,5 +1,7 @@ require './replacer' +sourcedirname = "CPPKoans" + puts "WARNING - this will modify the actual source files!" puts "if you want to continue type 'yes'" confirmation = gets @@ -8,7 +10,7 @@ confirmation = "yes" if ("yes" == confirmation) puts "OK...." r = Replacer.new - r.doit File.join(File.dirname(File.realpath(__FILE__)),'..','src') + r.doit File.join(File.dirname(File.realpath(__FILE__)),'..',sourcedirname) else puts "not doing anything" end