From 2b396eee650aa66eeffb38a2fefdec240741484f Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 3 Mar 2006 08:58:24 +0000 Subject: [PATCH] check for .noindex --- mkgallery.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkgallery.pl b/mkgallery.pl index 452d5da..822cd49 100755 --- a/mkgallery.pl +++ b/mkgallery.pl @@ -440,6 +440,8 @@ sub makeaux { sub startindex { my $self = shift; my $fn = $self->{-fullpath}.'/index.html'; + my $block = $self->{-fullpath}.'/.noindex'; + $fn = '/dev/null' if ( -f $block ); my $IND; unless (open($IND,'>'.$fn)) { warn "cannot open $fn: $!"; -- 2.39.2