Skip to content

Commit

Permalink
Make freezing work with Windows
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Oct 15, 2005
1 parent 1071486 commit 985574c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions railties/lib/tasks/framework.rake
Expand Up @@ -4,10 +4,11 @@ task :freeze_gems do
mkdir_p "vendor/rails"

for gem in %w( actionpack activerecord actionmailer activesupport actionwebservice )
system "cd vendor/rails; gem unpack #{gem}; mv #{gem}* #{gem}"
system "cd vendor/rails; gem unpack #{gem}"
FileUtils.mv(Dir.glob("vendor/rails/#{gem}*").first, "vendor/rails/#{gem}")
end

system "cd vendor/rails; gem unpack rails; mv rails* railties"
FileUtils.mv(Dir.glob("vendor/rails/rails*").first, "vendor/rails/railties")
end

desc "Lock this application to the Edge Rails (by exporting from Subversion)"
Expand Down

0 comments on commit 985574c

Please sign in to comment.