- Timestamp:
- 05/16/08 14:03:32 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/Scripts/Audio_scripts/AudioSegmentation/AudioBook.pm
r2586 r2587 30 30 use Getopt::Std; 31 31 use File::Basename; 32 use lib '/home/kmaclean/VoxForge-dev/Main/Scripts/Audio_scripts/AudioSegmentation'; 32 33 use AudioBook::Audio; 33 34 use AudioBook::Text; … … 118 119 my $username = $self->{"username"}; 119 120 my $tarSuffix = $self->{"tarSuffix"}; 121 my $readme = $self->{"README"}; 122 my $license = $self->{"LICENSE"}; 120 123 121 124 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); … … 124 127 $mday = sprintf("%02d", $mday); 125 128 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); 126 131 if ($debug) { 127 132 $command = ("tar -zcvf $username\-$year$mon$mday\-$tarSuffix\.tgz AudioBook/output_files --exclude \"\.svn\" "); print "cmd:$command\n" if $debug; system($command); … … 205 210 if ($opt_l) { 206 211 if (-r $opt_l) { 207 $self->{"LICEN CE"}=$opt_l;212 $self->{"LICENSE"}=$opt_l; 208 213 } else { 209 die "can't open -l" . $self->{"LICEN CE"} . "\n";214 die "can't open -l" . $self->{"LICENSE"} . "\n"; 210 215 } 211 216 } else { 212 $self->{"LICEN CE"}="AudioBook/input_files/LICENCE";217 $self->{"LICENSE"}="AudioBook/input_files/LICENSE"; 213 218 } 214 219 }