index.html generate: don't fail on empty directories
authorgc <gc>
Tue, 15 Mar 2005 22:06:24 +0000 (22:06 +0000)
committergc <gc>
Tue, 15 Mar 2005 22:06:24 +0000 (22:06 +0000)
booh

diff --git a/booh b/booh
index ce4c15f81f6163b480137533d1ba49382488b6d5..b7ed445202dc76a8f6c77c406b92d4bd983bef84 100755 (executable)
--- a/booh
+++ b/booh
@@ -681,6 +681,9 @@ def walk_source_dir
     `find #{$source} -type d`.each { |dir|
         dir.chomp!
         xmldir = $xmldoc.elements["//dir[@path='#{dir}']"]
+        if !xmldir
+            next
+        end
         dest_dir = dir.sub(/^#{Regexp.quote($source)}/, $dest)
 
         html = $html_index.collect { |l| l.clone }