mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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]
This commit is contained in:
committed by
Michael Koziarski
parent
173ee14c3d
commit
e01f99786a
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user