Skip to content

Commit

Permalink
upgrade 1.2 apps as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Moore authored and Brian Moore committed Jan 28, 2010
1 parent f742af6 commit 6a14a26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/upgrade-rhodes-app
Expand Up @@ -36,3 +36,13 @@ unless File.exists? "icon/icon.png"
end

cp File.dirname(__FILE__) + '/../res/generators/templates/application/Rakefile', 'Rakefile'

oldrhoconfig = IO.read("rhoconfig.txt")
newrhoconfig = File.open("rhoconfig.txt","w") do |f|
oldrhoconfig.each_line do |line|
unless line =~ /^require/
line.gsub!(/Rho::RhoConfig\./,"")
f.write line
end
end
end

0 comments on commit 6a14a26

Please sign in to comment.