Permalink
Browse files

Allow PKG_NAME env variable to control the directory name used when '…

…rake dev' is used to generate a new rails app.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#3278 state:committed]
  • Loading branch information...
1 parent 173ee14 commit e01f99786a586e41a36d3c1ddc66f080d04b4036 @jtrupiano jtrupiano committed with NZKoz Sep 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/Rakefile
View
@@ -9,7 +9,7 @@ require 'rbconfig'
require File.join(File.dirname(__FILE__), 'lib/rails', 'version')
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
-PKG_NAME = 'rails'
+PKG_NAME = ENV['PKG_NAME'] || 'rails'
PKG_VERSION = Rails::VERSION::STRING + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}"

0 comments on commit e01f997

Please sign in to comment.