ignore hidden directories
authorgc <gc>
Sat, 7 May 2005 21:03:22 +0000 (21:03 +0000)
committergc <gc>
Sat, 7 May 2005 21:03:22 +0000 (21:03 +0000)
bin/booh

index 533bd71..dcfcbbe 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -362,6 +362,11 @@ def walk_source_dir
 
     `find '#{$source}' -type d`.sort.each { |dir|
         dir.chomp!
+        if File.basename(dir) =~ /^\./
+            msg 1, _("Ignoring directory %s, begins with a dot (indicating a hidden directory)") % dir
+            next
+        end
+
         if dir =~ /'/
             die _("Source directory or sub-directories can't contain a single-quote character, sorry: %s") % dir
         end