Changeset 15876

Show
Ignore:
Timestamp:
05.06.2008 09:49:41 (11 years ago)
Author:
kjdon
Message:

plugin overhaul: plugins are now named xxxPlugin not xxxPlug. Note, the current list all stuff looks for files ending in Plugin.pm. Base plugins don't end in plugin anymore, so they won't appear in the list. Is this ok? They can't be used in a collection directly so does it matter that they don't show up?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/pluginfo.pl

    r14958 r15876  
    161161    my $plugin = shift (@ARGV); 
    162162    if (defined $plugin) { 
    163     $plugin =~ s/\.pm$//; # allow xxxPlug.pm as the argument 
     163    $plugin =~ s/\.pm$//; # allow xxxPlugin.pm as the argument 
    164164    } 
    165165 
     
    174174    my @plugin_list = (); 
    175175    if (opendir (INDIR, $plugins_dir)) { 
    176         @plugin_list = grep (/Plug\.pm$/, readdir (INDIR)); 
     176        @plugin_list = grep (/Plugin\.pm$/, readdir (INDIR)); 
    177177        closedir (INDIR); 
    178178    } 
     
    185185 
    186186        if (opendir (INDIR, $ext_plugins_dir)) { 
    187             my @ext_plugin_list = grep (/Plug\.pm$/, readdir (INDIR)); 
     187            my @ext_plugin_list = grep (/Plugin\.pm$/, readdir (INDIR)); 
    188188            closedir (INDIR); 
    189189