summaryrefslogtreecommitdiff
path: root/qpid/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
commit732ecad2dee33e362405a40bee644b777f6589b1 (patch)
tree5cada19e056677394f208242621d85535b3c3f2f /qpid/cpp/rubygen/amqpgen.rb
parent0b426037a11ee06903f2b3a6850d5a7521982c45 (diff)
downloadqpid-python-732ecad2dee33e362405a40bee644b777f6589b1.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@567072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/amqpgen.rb')
-rwxr-xr-xqpid/cpp/rubygen/amqpgen.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/amqpgen.rb b/qpid/cpp/rubygen/amqpgen.rb
index 333c7dd654..7d635c99c2 100755
--- a/qpid/cpp/rubygen/amqpgen.rb
+++ b/qpid/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