Changeset 29662

Show
Ignore:
Timestamp:
19.12.2014 12:28:36 (4 years ago)
Author:
jmt12
Message:

Now removes building and index directories if found

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/rm_archives.pl

    r26953 r29662  
    4343{ 
    4444  $cmd .= ' "' . $logs_dir . '"'; 
     45  $del_count++; 
     46} 
     47 
     48 
     49# Index dirs too! 
     50my $building_dir = $ENV{'GSDLHOME'} . '/collect/' . $ARGV[0] . '/building'; 
     51if (-d $building_dir) 
     52{ 
     53  $cmd .= ' "' . $building_dir . '"'; 
     54  $del_count++; 
     55} 
     56my $index_dir = $ENV{'GSDLHOME'} . '/collect/' . $ARGV[0] . '/index'; 
     57if (-d $index_dir) 
     58{ 
     59  $cmd .= ' "' . $index_dir . '"'; 
    4560  $del_count++; 
    4661}