Changeset 29662 for gs2-extensions


Ignore:
Timestamp:
12/19/14 12:28:36 (6 years ago)
Author:
jmt12
Message:

Now removes building and index directories if found

File:
1 edited

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}
Note: See TracChangeset for help on using the changeset viewer.