diff options
author | Alan Conway <aconway@apache.org> | 2009-06-30 13:47:31 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-06-30 13:47:31 +0000 |
commit | 5e286a3b663d2f9a8738188425babe1dba9da061 (patch) | |
tree | 621dbcc8991d34600daa4a92a9667f105334bd9f /cpp/rubygen | |
parent | 8b21a8ec86208ab9c2893e1f6ee21553438fa7c9 (diff) | |
download | qpid-python-5e286a3b663d2f9a8738188425babe1dba9da061.tar.gz |
Remove duplicate entries in generated makefile fragment src/rubygen.mk.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen')
-rwxr-xr-x | cpp/rubygen/amqpgen.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb index b77ab09ac0..802f934c7a 100755 --- a/cpp/rubygen/amqpgen.rb +++ b/cpp/rubygen/amqpgen.rb @@ -30,6 +30,7 @@ require 'delegate' require 'rexml/document' require 'pathname' +require 'set' include REXML # Handy String functions for converting names. @@ -463,8 +464,8 @@ end # Collect information about generated files. class GenFiles - @@files =[] - def GenFiles.add(f) @@files << f; end + @@files = Set.new + def GenFiles.add(f) @@files.add f; end def GenFiles.get() @@files; end end |