diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-15 14:19:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-15 14:19:22 +0000 |
commit | 120649dc8302122e32fb2e57fe36246f4ecf878e (patch) | |
tree | bf796542ab2ef3c838edeae3c1c99ffd9a8924ab | |
parent | 0a97c05ba0fdc8a1179c10869025c9fffcf69d13 (diff) | |
download | rails-120649dc8302122e32fb2e57fe36246f4ecf878e.tar.gz rails-120649dc8302122e32fb2e57fe36246f4ecf878e.tar.bz2 rails-120649dc8302122e32fb2e57fe36246f4ecf878e.zip |
Moved generate to bin and included it again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/Rakefile | 9 | ||||
-rwxr-xr-x | railties/bin/generate.rb (renamed from railties/generators/generate.rb) | 0 |
2 files changed, 1 insertions, 8 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 740c323aea..28d8e20f45 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -21,8 +21,7 @@ TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/testing LOG_FILES = %w( apache.log development.log test.log production.log ) HTML_FILES = %w( 404.html 500.html index.html ) -SCRIPT_FILES = %w( generate ) -BIN_FILES = %w( breakpointing envcon ) +BIN_FILES = %w( generate breakpointing envcon ) GENERATORS = %w( controller mailer model scaffold ) VENDOR_LIBS = %w( actionpack activerecord actionmailer railties ) @@ -140,12 +139,6 @@ end task :copy_generators do mkdir_p File.join(PKG_DESTINATION, 'script/generators') - SCRIPT_FILES.each do |file| - dest_file = File.join(PKG_DESTINATION, 'script', file) - cp File.join('generators', "#{file}.rb"), dest_file - chmod 0755, dest_file - end - GENERATORS.each do |dir| cp_r File.join('generators', dir), File.join(PKG_DESTINATION, 'script', 'generators', dir) end diff --git a/railties/generators/generate.rb b/railties/bin/generate.rb index 8f2f1497d6..8f2f1497d6 100755 --- a/railties/generators/generate.rb +++ b/railties/bin/generate.rb |