#!/usr/ug/bin/perl open(EDIT, ") { ($PN, $TI) = split("@"); $EDIT{"$PN"} = $TI; } close (EDIT); open(DATA, ") { if (/^PN: (.*)/) { $PN=$1; } if (/^SE: (.*)/) { $data{"$PN,SE"}=$1; } elsif (/^ST: (.*)/) { $data{"$PN,ST"}=$1; } elsif (/^EN: (.*)/) { $data{"$PN,EN"}=$1; $data{"$PN,EN"} =~ tr/a-z/A-Z/; } elsif (/^TI: (.*)/) { $data{"$PN,TI"}=$1; } elsif (/^DT: (.*)/) { $data{"$PN,DT"}=$1; } elsif (/^NI: (.*)/) { $data{"$PN,NI"}=$1; } elsif (/^GS: (.*)/) { $data{"$PN,GS"}=$1; } elsif (/^HI: (.*)/) { $data{"$PN,HI"}=$1; $data{"$PN,HI"} =~ s/
/ /g; $data{"$PN,HI"} =~ s/

/ /g; $data{"$PN,HI"} =~ s/^"[^"]*" - //; #" } elsif (/^AD: (.*)/) { $data{"$PN,AD"}=$1; $data{"$PN,AD"} =~ s/
//g; $data{"$PN,AD"} =~ s/

//g; } elsif (/^TV: (.*)/) { $data{"$PN,TV"}=$1; $data{"$PN,TV"} =~ s/
//g; $data{"$PN,TV"} =~ s/

//g; } elsif (/^ED: (.*)/) { $data{"$PN,ED"}=$1; $data{"$PN,ED"} =~ s/
//g; $data{"$PN,ED"} =~ s/

//g; } } close(DATA); `cp sttng1a.html ../../sttng-1.html`; `cp sttng2a.html ../../sttng-2.html`; `cp sttng3a.html ../../sttng-3.html`; `cp sttng4a.html ../../sttng-4.html`; `cp sttng5a.html ../../sttng-5.html`; `cp sttng6a.html ../../sttng-6.html`; `cp sttng7a.html ../../sttng-7.html`; open(DATA, ") { ($NUM, $PN)=split(/ /); chop($PN); $SE=$data{"$PN,SE"}; open(OUT, ">>../../sttng-$SE.html"); print OUT <

$data{"$PN,TI"}

EOF if (-e "../images/$PN-2.jpg") { $len = (-s "../images/$PN-2.jpg"); $len/=1024; if (($len - int($len)) >= 0.5) { $len = int($len) + 1; } else { $len = int($len); } $SIZE=`jpegSize ../images/$PN-2.jpg`; chop($SIZE); print OUT <(${len}K)

EOF } print OUT < EOF print OUT $data{"$PN,HI"}, "\n"; print OUT <
  • $data{"$PN,DT"}
  • Episode Number: $NUM
  • Production Number: $PN
  • Stardate: $data{"$PN,ST"}
  • WWW Rating: [] EOF if ($EDIT{"$PN"} ne "") { print OUT <Edited Length: $EDIT{"$PN"} EOF } if ($data{"$PN,NI"} ne "[/]") { print OUT <Nielsen Rating/Rank: $data{"$PN,NI"} EOF } if (-e "../credits/$PN.html") { print OUT "
  • Credits transcription"; } if (-e "../promo/$PN.html") { print OUT "
  • Promo transcription"; } if (-e "../press/$PN.html") {print OUT "
  • Press Release ";} if (-e "../quotes/$PN.html") {print OUT "
  • Quotes"} if (-e "../reviews/$PN.html") { print OUT "
  • Reviews"; } print OUT < EOF if ($between==1) { print OUT < EOF $between=2; } else { print OUT ""; $between=1; } close(OUT); } `cat sttng1b.html>>../../sttng-1.html`; `cat sttng2b.html>>../../sttng-2.html`; `cat sttng3b.html>>../../sttng-3.html`; `cat sttng4b.html>>../../sttng-4.html`; `cat sttng5b.html>>../../sttng-5.html`; `cat sttng6b.html>>../../sttng-6.html`; `cat sttng7b.html>>../../sttng-7.html`;