diff options
author | Alan Conway <aconway@apache.org> | 2007-08-17 15:52:07 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-08-17 15:52:07 +0000 |
commit | fd00bd1ca14d2ac2add8b0d0dba9477aafebc7d2 (patch) | |
tree | d277cf2d25a29a7688b43be1a008056f5cfdd655 /cpp/rubygen/amqpgen.rb | |
parent | c534d81e9ef0b19a57dce9c115e6a436d9a82320 (diff) | |
download | qpid-python-fd00bd1ca14d2ac2add8b0d0dba9477aafebc7d2.tar.gz |
* Fixes for code generation.
- Generate make fragments in $(srcdir) to fix VPATH builds.
- rubygen: generates its own .mk fragment
- rubygen: moved template info from Makefile.am to generated rubygen.mk, fixes circular dependency between Makefile and rubygen.mk
- removed unused templates.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@567072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/amqpgen.rb')
-rwxr-xr-x | cpp/rubygen/amqpgen.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb index 333c7dd654..7d635c99c2 100755 --- a/cpp/rubygen/amqpgen.rb +++ b/cpp/rubygen/amqpgen.rb @@ -174,6 +174,13 @@ class AmqpRoot < AmqpElement end +# Collect information about generated files. +class GenFiles + @@files =[] + def GenFiles.add(f) @@files << f; puts f; end + def GenFiles.get() @@files; end +end + # Base class for code generators. # Supports setting a per-line prefix, useful for e.g. indenting code. # @@ -191,7 +198,7 @@ class Generator # Create a new file, set @out. def file(file) - puts file + GenFiles.add file if (@outdir != "-") path=Pathname.new "#{@outdir}/#{file}" path.parent.mkpath |