Ignore:
Timestamp:
2012-05-11T19:23:42+12:00 (12 years ago)
Author:
ak19
Message:
  1. Introduced the verbosity flag into activate.pl to print out debugging statements depending on verbosity, and this is passed in from buildcol.pl and full-rebuild.pl too now. 2. Cleaned up some debugging code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/util.pm

    r25578 r25579  
    190190    opendir(DIR, "$src_dir");
    191191    my @files= readdir(DIR);
    192     close(DIR); 
     192    close(DIR);
    193193   
    194194    my @full_path_files = ();
     
    197197        unless($file eq "." || $file eq "..") {
    198198           
    199             my $dest_subdir = &filename_cat($dest_dir, $file); # $file still relative path
     199            my $dest_subdir = &filename_cat($dest_dir, $file); # $file is still a relative path
    200200       
    201201            # construct absolute paths
     
    206206            # then a simple move operation will fail (definitely on Windows).
    207207            if(-d $file && -d $dest_subdir) {
    208                 print STDERR "**** $file is a directory also existing in target, to be copied to $dest_subdir\n";
     208                #print STDERR "**** $file is a directory also existing in target, its contents to be copied to $dest_subdir\n";
    209209                &mv_dir_contents($file, $dest_subdir);
    210210               
     
    212212                if(&is_dir_empty($file)) {
    213213                    if (!rmdir $file) {
    214                         print STDERR "util::mv_dir_contents couldn't remove directory $file\n";
     214                        print STDERR "ERROR. util::mv_dir_contents couldn't remove directory $file\n";
    215215                    }
    216216                } else { # error
Note: See TracChangeset for help on using the changeset viewer.