Changeset 28566
- Timestamp:
- 2013-10-31T11:34:01+13:00 (10 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/buildcolutils.pm
r28087 r28566 506 506 &FileUtils::makeAllDirectories($realarchivedir); 507 507 &FileUtils::makeAllDirectories($realbuilddir); 508 & util::cachedir($archivedir, $realarchivedir, $verbosity);508 &FileUtils::synchronizeDirectory($archivedir, $realarchivedir, $verbosity); 509 509 } 510 510 else … … 703 703 &gsprintf::gsprintf($out, "{buildcol.copying_back_cached_build}\n"); 704 704 } 705 & util::rm_r($self->{'builddir'});706 & util::cp_r($self->{'realbuilddir'}, $self->{'builddir'});705 &FileUtils::removeFilesRecursive($self->{'builddir'}); 706 &FileUtils::copyFilesRecursive($self->{'realbuilddir'}, $self->{'builddir'}); 707 707 } 708 708 -
main/trunk/greenstone2/perllib/lucenebuildproc.pm
r28035 r28566 38 38 39 39 use IncrementalBuildUtils; 40 use FileUtils; 40 41 41 42 sub BEGIN { … … 626 627 if ($edit_mode eq "delete") { 627 628 # if we are deleting the doc, then also delete the lucene text version 628 my $assoc_dir = & util::filename_cat($self->{'build_dir'},"text", $archivedir);629 my $assoc_dir = &FileUtils::filenameConcatenate($self->{'build_dir'},"text", $archivedir); 629 630 if (-d $assoc_dir) { 630 & util::rm_r($assoc_dir);631 &FileUtils::removeFilesRecursive($assoc_dir); 631 632 } 632 633 }
Note:
See TracChangeset
for help on using the changeset viewer.