summaryrefslogtreecommitdiff
path: root/cpp/rubygen/amqpgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-17 15:52:07 +0000
committerAlan Conway <aconway@apache.org>2007-08-17 15:52:07 +0000
commitfd00bd1ca14d2ac2add8b0d0dba9477aafebc7d2 (patch)
treed277cf2d25a29a7688b43be1a008056f5cfdd655 /cpp/rubygen/amqpgen.rb
parentc534d81e9ef0b19a57dce9c115e6a436d9a82320 (diff)
downloadqpid-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-xcpp/rubygen/amqpgen.rb9
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