[LON-CAPA-cvs] cvs: doc(version_2_11_X) /loncapafiles removenolongerused.piml

raeburn raeburn at source.lon-capa.org
Wed Aug 7 14:30:49 EDT 2013


raeburn		Wed Aug  7 18:30:49 2013 EDT

  Modified files:              (Branch: version_2_11_X)
    /doc/loncapafiles	removenolongerused.piml 
  Log:
  - For 2.11
    - Remote Control retained for 2.11
  
  
Index: doc/loncapafiles/removenolongerused.piml
diff -u doc/loncapafiles/removenolongerused.piml:1.1 doc/loncapafiles/removenolongerused.piml:1.1.2.1
--- doc/loncapafiles/removenolongerused.piml:1.1	Wed Aug  7 18:20:22 2013
+++ doc/loncapafiles/removenolongerused.piml	Wed Aug  7 18:30:49 2013
@@ -7,39 +7,27 @@
 
 use File::Path qw(remove_tree);
 
-my @rcgifs = qw(anno.gif anot.gif anot2.gif back.gif bchat.gif bkm.gif blog.gif brws.gif catalog.gif ccat.gif ccrs.gif chrt.gif clst.gif com.gif conf.gif courses.gif cprv.gif cstr.gif del.gif docs.gif egrd.gif enrl.gif eval.gif fdbk.gif forw.gif grds.gif grps.gif keys.gif ledsend.gif list.gif logout.gif mail.gif mcrs.gif mrk.gif nav.gif new.gif parm.gif pcsrt.gif pcstr.gif pdfupload.gif pgrd.gif port.gif pparm.gif pref.gif prt.gif pub.gif rcrs.gif reload.gif remotebg.gif res.gif roles.gif rsrv.gif rtrv.gif sbkm.gif sctr.gif spacer.gif sprs.gif src.gif srvr.gif stat.gif subm.gif title.gif vbkm.gif);
-
 my %paths = (
               'londaemons' => '/home/httpd/perl',
               'apache'     => '/home/httpd/lib/perl/Apache',
               'londocroot' => '/home/httpd/html',
-              'rcgifs'     => '/home/httpd/html/res/adm/pages',
             );
  
 my %files = (
               'londaemons' => ['lonManage','lchtmldir','lonhttpd'],
               'apache'     => ['londropadd.pm','lonconstruct.pm',
-                               'lonremote.pm','admbookmarks.pm'],
+                               'admbookmarks.pm'],
               'londocroot' => ['adm/rat/extpickcode.html',
-                               'adm/rat/extpickframe.html',
-                               'res/adm/pages/imgmaps.html',
-                               'res/adm/pages/menu.html',
-                               'res/adm/pages/homeworkmenu.html'],
+                               'adm/rat/extpickframe.html'],
             );
 
 my %dirs = (
-              'londocroot' => 'adm/lonLCDfont',
-                              'htmlarea',
+              'londocroot' => 'htmlarea',
                               'res/adm/pages/bookmarkmenu',
            );
 
-my %multis = (
-                 rcgifs'     => \@rcgifs,
-             ); 
 my @filestodelete = ();
 my @dirstodelete = ();
-my @multistodelete = ();
-my @gifstodelete = ();
 foreach my $key (sort(keys(%files))) {
     if ($paths{$key} ne '') {
         if (ref($files{$key}) eq 'ARRAY') {
@@ -64,19 +52,6 @@
     }
 }
 
-foreach my $key (sort(keys(%multis))) {
-    if ($paths{$key} ne '') {
-        if (ref($multis{$key}) eq 'ARRAY') {
-            foreach my $file (@{$dirs{$key}}) {
-                if (-f $paths{$key}.'/'.$file) {
-                    push(@multistodelete,$paths{$key}.'/'.$file);
-                    push(@gifstodelete,$file);
-                }
-            }
-        }
-    }
-}
-
 if (@dirstodelete > 0) {
     print "\nThe following directories were installed for an earlier version of LON-CAPA, and are no longer needed. It is recommended that you delete them. For each one, enter Y if you would the directory to be deleted.\n\n";
     foreach my $dir (@dirstodelete) {
@@ -103,21 +78,6 @@
     }
 }
 
-if (@multistodelete > 0) {
-    my $num = scalar(@multistodelete);
-    print "\nThe following $num gif image files were installed in $paths{rcgifs}/ for use with the LON-CAPA Remote Control (available in an earlier version of LON-CAPA), and now no longer used:\n".join(' ', at gifstodelete)."\n".
-          "Enter Y if you would all $num files to be deleted.\n\n".
-          "Remove? Y or N:\n";
-    my $choice=<>;
-    chomp($choice);
-    if ($choice==Y) {
-        foreach my $item (@multistodelete) {
-            next if ((($item =~/*/) || ($item eq '') || ($item eq '/'));
-            unlink($item);
-        }
-    }
-}
-
 </perlscript>
 </file>
 </files>




More information about the LON-CAPA-cvs mailing list