diff options
author | John Trupiano <jtrupiano@gmail.com> | 2009-09-27 10:15:17 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-09-28 14:41:17 +1300 |
commit | e01f99786a586e41a36d3c1ddc66f080d04b4036 (patch) | |
tree | f9459ee8467f1f8c962fc2d0e4d402bb3deeaaa5 /railties/Rakefile | |
parent | 173ee14c3d95238cfb828400862a24a14aec600f (diff) | |
download | rails-e01f99786a586e41a36d3c1ddc66f080d04b4036.tar.gz rails-e01f99786a586e41a36d3c1ddc66f080d04b4036.tar.bz2 rails-e01f99786a586e41a36d3c1ddc66f080d04b4036.zip |
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]
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 47ea4edd84..e36930af4f 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -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}" |