voxforge.org
VoxForge Dev
Show
Ignore:
Timestamp:
05/16/08 14:03:32 (8 months ago)
Author:
kmaclean
Message:

AudioSegmentation scripts -snapshot

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/Scripts/Audio_scripts/AudioSegmentation/AudioBook.pm

    r2586 r2587  
    3030use Getopt::Std; 
    3131use File::Basename; 
     32use lib '/home/kmaclean/VoxForge-dev/Main/Scripts/Audio_scripts/AudioSegmentation'; 
    3233use AudioBook::Audio; 
    3334use AudioBook::Text; 
     
    118119        my $username = $self->{"username"}; 
    119120        my $tarSuffix = $self->{"tarSuffix"}; 
     121        my $readme = $self->{"README"}; 
     122        my $license = $self->{"LICENSE"}; 
    120123         
    121124        my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); 
     
    124127        $mday = sprintf("%02d", $mday); 
    125128        print "creating gzipped tar file:$username\-$year$mon$mday\-$tarSuffix\.tgz \n"; 
     129        $command = ("cp $readme AudioBook/output_files/README"); print "cmd:$command\n" if $debug; system($command);     
     130        $command = ("cp $license AudioBook/output_files/LICENSE"); print "cmd:$command\n" if $debug; system($command);   
    126131        if ($debug) { 
    127132                $command = ("tar -zcvf $username\-$year$mon$mday\-$tarSuffix\.tgz AudioBook/output_files --exclude \"\.svn\" "); print "cmd:$command\n" if $debug; system($command); 
     
    205210                        if ($opt_l) { 
    206211                                if (-r $opt_l) { 
    207                                         $self->{"LICENCE"}=$opt_l;     
     212                                        $self->{"LICENSE"}=$opt_l;     
    208213                                } else { 
    209                                         die "can't open -l" . $self->{"LICENCE"} . "\n";                               
     214                                        die "can't open -l" . $self->{"LICENSE"} . "\n";                               
    210215                                } 
    211216                        } else { 
    212                                 $self->{"LICENCE"}="AudioBook/input_files/LICENCE"; 
     217                                $self->{"LICENSE"}="AudioBook/input_files/LICENSE"; 
    213218                        } 
    214219                }