summaryrefslogtreecommitdiff
path: root/cpp/rubygen
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-21 16:07:08 +0000
committerGordon Sim <gsim@apache.org>2007-08-21 16:07:08 +0000
commit7d644cc8a8658741f9177bfa05d823d0d43be788 (patch)
tree69ee0d33a7b56e126962e2487132b12ff16aaa78 /cpp/rubygen
parentbb2883b9f5cfad0e028a9849ed91e36418a2d0ff (diff)
downloadqpid-python-7d644cc8a8658741f9177bfa05d823d0d43be788.tar.gz
Create directory for generated files
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568184 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen')
-rwxr-xr-xcpp/rubygen/amqpgen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb
index 044a2497e0..ceaf04090b 100755
--- a/cpp/rubygen/amqpgen.rb
+++ b/cpp/rubygen/amqpgen.rb
@@ -252,7 +252,7 @@ class Generator
@prefix='' # For indentation or comments.
@indentstr=' ' # One indent level.
@outdent=2
- raise "Invalid output directory: #{outdir}" unless @outdir=="-" or File.directory?(@outdir)
+ Pathname.new(@outdir).mkpath unless @outdir=="-" or File.directory?(@outdir)
end
# Create a new file, set @out.