voxforge.org
VoxForge Dev

Changeset 2340

Show
Ignore:
Timestamp:
10/18/07 15:12:01 (1 year ago)
Author:
kmaclean
Message:

fix to double license appearing in submission as UserSubmission?.pm processes it ... removes GPL_license file in user's submission - assume that GPL_License in scripts is most current

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/Scripts/Audio_scripts/UserSubmission/LICENSE.pm

    r2263 r2340  
    5151        foreach my $licenseFileName (sort @dirlist) { 
    5252                if ($licenseFileName !~ /\~/) { # ignore backup file erroneously included in submission 
    53                         if (($licenseFileName =~ /licence/i) or ($licenseFileName =~ /license/i)) {  # ignore case, ignore suffix        
     53                        if ( $licenseFileName =~ /GPL_license/i ) { 
     54                                        $command = ("rm -f $licensePath/$licenseFileName"); print "$command\n" if $debug; system($command); # rename all upper/lower capitalization versions of LICENSE file to "LICENSE" 
     55                        } elsif ( (($licenseFileName =~ /licence/i) or ($licenseFileName =~ /license/i)) and ($licenseFileName !~ /GPL_license/i) ) {  # ignore case, ignore suffix      
    5456                                if ($licenseFileName ne "LICENSE") { 
    5557                                        $command = ("mv -f $licensePath/$licenseFileName $licensePath/LICENSE"); print "$command\n" if $debug; system($command); # rename all upper/lower capitalization versions of LICENSE file to "LICENSE" 
     
    5860                                last; 
    5961                        } 
     62 
     63                         
    6064                } 
    6165        }