Diff for /doc/loncapafiles/removenolongerused.piml between versions 1.1.2.2 and 1.1.2.12

version 1.1.2.2, 2013/08/09 06:29:14 version 1.1.2.12, 2021/12/24 16:09:09
Line 11  my %paths = ( Line 11  my %paths = (
               'londaemons' => '/home/httpd/perl',                'londaemons' => '/home/httpd/perl',
               'apache'     => '/home/httpd/lib/perl/Apache',                'apache'     => '/home/httpd/lib/perl/Apache',
               'londocroot' => '/home/httpd/html',                'londocroot' => '/home/httpd/html',
                 'debug'      => '/home/httpd/perl/debug',
             );              );
     
 my %files = (  my %files = (
               'londaemons' => ['lonManage','lchtmldir','lonhttpd'],                'londaemons' => ['lonManage','lchtmldir','lonhttpd','lcuseradd','lonc'],
               'apache'     => ['londropadd.pm','lonconstruct.pm',                'apache'     => ['londropadd.pm','lonconstruct.pm',
                                'admbookmarks.pm'],                                 'admbookmarks.pm','lonassignments.pm'],
               'londocroot' => ['adm/rat/extpickcode.html',                'londocroot' => ['adm/rat/extpickcode.html',
                                'adm/rat/extpickframe.html'],                                 'adm/rat/extpickframe.html',
                                  'adm/help/gif/vbkm.gif',
                                  'adm/help/eps/vbkm.eps',
                                  'adm/jQuery/js/jquery-1.3.2.min.js',
                                  'adm/jQuery/js/jquery-1.6.2.min.js',
                                  'adm/jQuery/js/jquery-1.11.3.min.js',
                                  'adm/jQuery/js/jquery-ui-1.7.2.custom.min.js',
                                  'adm/jQuery/js/jquery-ui-1.8.16.custom.min.js',
                                  'adm/jQuery/js/jquery-ui-1.11.4.custom.min.js',
                                  'adm/jQuery/css/smoothness/jquery-ui-1.7.2.custom.css',
                                  'adm/jQuery/css/smoothness/jquery-ui-1.8.16.custom.css',
                                  'adm/jQuery/js/css/smoothness/jquery-ui-1.11.4.custom.css',
                                  'adm/reactionresponse/reaction_frame.html',
                                  'adm/reactionresponse/reaction_window.html'],
                 'debug'      => ['archive_coursedata_tables.pl'],
             );              );
   
 my %dirs = (  my %dirs = (
               'londocroot' => 'htmlarea',                'londocroot' => ['htmlarea',
                               'res/adm/pages/bookmarkmenu',                                    'res/adm/pages/bookmarkmenu',
                                     'res/adm/pages/reactionresponse',
                                     'adm/jsMath',
                                     'adm/jQuery/css/ui-lightness'],
            );             );
   
 my @filestodelete = ();  my @filestodelete = ();
Line 32  foreach my $key (sort(keys(%files))) { Line 50  foreach my $key (sort(keys(%files))) {
     if ($paths{$key} ne '') {      if ($paths{$key} ne '') {
         if (ref($files{$key}) eq 'ARRAY') {          if (ref($files{$key}) eq 'ARRAY') {
             foreach my $file (@{$files{$key}}) {              foreach my $file (@{$files{$key}}) {
                 if (-f $paths{$key}.'/'.$file) {                  if (($file ne '') && (-f $paths{$key}.'/'.$file)) {
                     push(@filestodelete,$paths{$key}.'/'.$file);                      push(@filestodelete,$paths{$key}.'/'.$file);
                 }                  }
             }              }
Line 44  foreach my $key (sort(keys(%dirs))) { Line 62  foreach my $key (sort(keys(%dirs))) {
     if ($paths{$key} ne '') {      if ($paths{$key} ne '') {
         if (ref($dirs{$key}) eq 'ARRAY') {          if (ref($dirs{$key}) eq 'ARRAY') {
             foreach my $dir (@{$dirs{$key}}) {              foreach my $dir (@{$dirs{$key}}) {
                 if (-d $paths{$key}.'/'.$dir) {                  if (($dir ne '') && (-d $paths{$key}.'/'.$dir)) {
                     push(@dirstodelete,$paths{$key}.'/'.$dir);                      push(@dirstodelete,$paths{$key}.'/'.$dir);
                 }                  }
             }              }
Line 61  if (@dirstodelete > 0) { Line 79  if (@dirstodelete > 0) {
         chomp($choice);          chomp($choice);
         $choice =~ s/\s+//g;          $choice =~ s/\s+//g;
         if ($choice eq 'Y') {          if ($choice eq 'Y') {
             File::Path::remove_tree($dir);              File::Path::rmtree($dir);
         }          }
     }      }
 }  }

Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.12


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>