diff options
Diffstat (limited to 'cpp/rubygen/generate')
-rwxr-xr-x | cpp/rubygen/generate | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/rubygen/generate b/cpp/rubygen/generate index 52313186ed..e35a5458ea 100755 --- a/cpp/rubygen/generate +++ b/cpp/rubygen/generate @@ -23,12 +23,12 @@ Specs=ARGV.grep(/\.xml$/) Amqp=AmqpRoot.new(*Specs) # Run selected templates -if ARGV.grep("^all$") +if ARGV.any? { |arg| arg=="all" } templates=Dir["#{File.dirname __FILE__}/templates/*.rb"] else templates=ARGV.grep(/\.rb$/) end -templates.each { |t| require t } +templates.each { |t| load t } # Generate makefile makefile=ARGV.grep(/.mk$/)[0] |