source dir name

This commit is contained in:
B Kleinen
2012-04-18 22:30:17 +02:00
parent 8aa0855ddb
commit 2bf3e51b7b

View File

@@ -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