scripts/gettd.pl
author victorp@symbian.org
Mon, 04 Jan 2010 16:00:55 +0000
changeset 25 48be12a54405
parent 22 d2ecfdaf0f31
child 28 ab800b3e45ab
permissions -rw-r--r--
update to gettd.pl including a count option see -h for more info
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     1
#!/usr/bin/perl
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     2
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     3
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     5
use IO::Socket; 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     6
use Getopt::Long;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     7
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     8
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
     9
my $target_url; #target url for the roadmap
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    10
my $tdomain; #tag for the domain to be use in csv file
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    11
my $csvfile; #output csv file name
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    12
my $authon= '';	 #does it require authorisation? default is false
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    13
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
    14
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
    15
my $count_target; #this value is used to pass a string to match and count on each package backlog
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    16
my $ispackage;
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
    17
my $splitbklogs;
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    18
my $summaryheader="ID\tPackage\tFeatures\tFormat\tHttp\n" ;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    19
my $newtdformat = 0;
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
    20
my @blist = ("Tracking_Package_features","Kernel_EPLization_Backlog",
8
86e7e89c8543 update to planning data and integration.xlsx for week46
victorp@symbian.org
parents: 7
diff changeset
    21
    "Package_Backlog_Q","Wishlist","Test_Package","Backlog_Details");
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    22
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    23
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    24
sub blacklist
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    25
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    26
 ($name)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    27
      
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    28
 foreach(@blist) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    29
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    30
 if ( $name =~ m/$_/sg) { print "WARNING - $name is blacklisted\n"; return 1;}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    31
 }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    32
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    33
 return 0;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    34
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    35
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    36
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    37
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    38
sub getpage
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    39
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    40
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    41
	($page,$host,$auth,$myfile)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    42
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    43
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    44
	#output file
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    45
	open ( outputfile, ">".$myfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    46
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    47
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    48
	$port = "http(80)";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    49
	$getmess = "GET " . $page ." HTTP/1.1\n" . $auth;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    50
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    51
	print "INFO - sending message - $getmess\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    52
	print outputfile "$getmess\n\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    53
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    54
	$sock = IO::Socket::INET->new 	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    55
		(
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    56
		 PeerAddr => $host,   PeerPort => $port,  Proto => 'tcp', 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    57
		) ;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    58
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    59
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    60
	print $sock "$getmess\n\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    61
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    62
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    63
	while(<$sock>) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    64
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    65
	  print outputfile $_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    66
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    67
	}	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    68
  	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    69
	close ($sock);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    70
	close (outputfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    71
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    72
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    73
sub prntfeatures 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    74
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    75
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    76
	($release,$package,$features,$myfile,$domain)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    77
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    78
  $release =~ s/\\//sg;	
22
d2ecfdaf0f31 implemented suggested changes by Tom Lovell to gettd.pl on the techroadmap output format
victorp@symbian.org
parents: 8
diff changeset
    79
	$csvdel ="\",\"";
d2ecfdaf0f31 implemented suggested changes by Tom Lovell to gettd.pl on the techroadmap output format
victorp@symbian.org
parents: 8
diff changeset
    80
	$invcoma ="\"";
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    81
 if ($newtdformat) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    82
  $package =~ s/backlog//sgi;
22
d2ecfdaf0f31 implemented suggested changes by Tom Lovell to gettd.pl on the techroadmap output format
victorp@symbian.org
parents: 8
diff changeset
    83
  print $myfile "$invcoma $release $csvdel $domain $csvdel $package $csvdel $myfeat $invcoma\n";
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    84
  
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    85
 } else {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    86
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    87
	$features = $features."<dt";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    88
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    89
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    90
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    91
	while ( $features =~ /dt\>(.*?)\<\/dt(.*?)\<dt/sg  ){
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    92
		$myfeat = $1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    93
		$subfeat =$2;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    94
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    95
		$myfeat =~ s/\n/ /sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    96
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    97
		pos($features) = pos($features) -2;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    98
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
    99
		$mystr="";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   100
		while ( $subfeat =~ /\<dd\>(.*?)\<\/dd\>/sg) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   101
			$mysubfeat = $mysubfeat.$mystr.$1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   102
			$mystr = " & ";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   103
		}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   104
		undef $mystr;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   105
	$mysubfeat =~ s/,/ /sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   106
	$mysubfeat =~ s/\n//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   107
	$mysubfeat =~ s/\<.*?\>//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   108
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   109
22
d2ecfdaf0f31 implemented suggested changes by Tom Lovell to gettd.pl on the techroadmap output format
victorp@symbian.org
parents: 8
diff changeset
   110
	print $myfile "$invcoma $release $csvdel $domain $csvdel $package $csvdel $myfeat $csvdel $csvdel $csvdel $mysubfeat $invcoma\n";
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   111
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   112
	$mysubfeat = "";	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   113
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   114
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   115
 }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   116
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   117
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   118
sub loadfile
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   119
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   120
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   121
	$/ = " ";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   122
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   123
	($myfile)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   124
	open ( inputfile, "<".$myfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   125
	my $contents = do { local $/;  <inputfile> };
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   126
	close(inputfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   127
	return $contents;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   128
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   129
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   130
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   131
sub td_roadmap
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   132
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   133
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   134
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   135
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   136
	($infile,$outfile,$domain,@releases)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   137
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   138
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   139
	$roadmap=loadfile $infile;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   140
	open ( outputfile, ">>".$outfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   141
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   142
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   143
  if ($newtdformat) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   144
       print "Processing new TD roadmap format\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   145
         if ($roadmap =~ m /Contents\<\/h2\>.*?\<\/table/sg) { $roadmap =$';}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   146
         foreach (@releases) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   147
          $exp=$_." Roadmap";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   148
		         
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   149
           if ($roadmap =~ m /($exp)/sg) { 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   150
			     print "PASS - Found entry for $_ \n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   151
			     $relroad =$';	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   152
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   153
			     if ($roadmap =~ m /table\>(.*?)\<\/table/sg) { $relroad =$1;}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   154
			      $relroad =~ s/\n//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   155
			      
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   156
            $skipfirst =1; #skipping the header of the table         
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   157
            while ($relroad =~ m/\<tr\>(.*?)\<\/tr(.*)/sg){
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   158
                  $myfeat=$1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   159
                  $relroad =$2;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   160
                  if ($skipfirst) {$skipfirst=0;next;}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   161
                  $package="";
6
2ac7d35ac201 update to gettd.pl and runntd to reflect new TD roamap format and also a new version of tech_roadmap.csv
victorp@symbian.org
parents: 5
diff changeset
   162
                  if  ($myfeat =~ m/title\=\"(.*?)\"/sg) {  $package=$1; } #looking for package name
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   163
                                  
22
d2ecfdaf0f31 implemented suggested changes by Tom Lovell to gettd.pl on the techroadmap output format
victorp@symbian.org
parents: 8
diff changeset
   164
                  $myfeat=~ s/\<\/td\>\<td\>/\",\"/sg;   
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   165
                  $myfeat=~ s/\<.*?\>//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   166
                 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   167
                 if ($myfeat =~m/[A-z]/sg ){prntfeatures($_,$package,$myfeat,outputfile,$domain);}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   168
                
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   169
                 }  		     
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   170
         }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   171
        }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   172
  } else {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   173
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   174
	 foreach (@releases) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   175
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   176
	 	$exp="\\<h2\\>.*?\\>".$_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   177
		  
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   178
		if ($roadmap =~ m /($exp)/sg) { 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   179
			print "PASS - Found entry for $_ \n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   180
			$relroad =$';	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   181
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   182
			if ($relroad =~ m /(.*?)\<h2/sg) { $relroad =$1;}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   183
			$i=0;	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   184
			while ($relroad=~ m/\<h3\>.*\>(.*?)\<.*<\/h3/g) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   185
				$package = $1;		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   186
				$ppos[$i]= pos($relroad);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   187
				$pname[$i]= $package;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   188
				$i++;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   189
			}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   190
			for ( $i=0;$i<($#ppos); $i++){
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   191
				$features= substr ($relroad, $ppos[$i],$ppos[$i+1]-$ppos[$i]);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   192
				prntfeatures($_,$pname[$i],$features,outputfile,$domain);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   193
			}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   194
			$features= substr ($relroad, $ppos[$i]);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   195
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   196
			prntfeatures($_,$pname[$i],$features,outputfile,$domain);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   197
			@ppos ="";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   198
			@pname ="";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   199
			undef ($features);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   200
		}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   201
	}		 	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   202
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   203
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   204
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   205
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   206
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   207
	close (outputfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   208
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   209
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   210
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   211
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   212
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   213
sub parse_category {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   214
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   215
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   216
	($infile)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   217
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   218
	my @mylink;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   219
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   220
	$mypage=loadfile $infile;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   221
	$i=0;	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   222
	if ( $mypage =~ m/Pages in category(.*)\<\/table/sg) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   223
		print "INFO - Category page found\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   224
		$mypage = $1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   225
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   226
		while ($mypage =~ m /\<a href\=\"(\/wiki\/index\.php\/.*?)\"/g) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   227
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   228
			$mylink[$i] = $1;	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   229
			$i++;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   230
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   231
		}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   232
	print "INFO - Found $i items in the category page\n"
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   233
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   234
	return @mylink;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   235
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   236
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   237
sub bklog_domain {
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   238
 #argument
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   239
($mytechdomian)=@_;
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   240
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   241
  $mytechdomian =~s/\)//sg;
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   242
  $mytechdomian =~s/\(//sg;
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   243
  
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   244
 $domaininfo=loadfile ("package_domains.csv");
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   245
 if ($domaininfo =~ m/$mytechdomian.*?\{(.*?)\}/sgi ) {
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   246
      return $1;
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   247
 }
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   248
  print "ERROR - domain not found for $mytechdomian\n";
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   249
  return "orphan";
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   250
 
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   251
}
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   252
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   253
sub parse_bklog {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   254
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   255
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   256
	($infile,$outfile,$id)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   257
	$mypkg=loadfile $infile;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   258
	#list if the bklog has been ported to the new bugzilla based format
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   259
  $headerformat= "wiki_format";
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   260
  
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   261
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   262
	open ( outputfile, ">>".$outfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   263
	open ( soutputfile, ">>"."summary_".$outfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   264
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   265
	if ($mypkg =~ m/index\.php\/(.*?) HTTP/sg) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   266
  
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   267
		$pagename = $1;
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   268
		
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   269
    if ($splitbklogs) {
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   270
      $whichtd =  bklog_domain($pagename);
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   271
      open ( tdoutputfile, ">>".$whichtd. "_".$outfile);
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   272
     }
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   273
    
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   274
    
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   275
    
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   276
    if (blacklist($pagename)) {
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   277
       
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   278
    	  close (outputfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   279
	      close (soutputfile);
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   280
	    
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   281
	      if ($splitbklogs) { close (tdoutputfile);}
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   282
        return 0;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   283
    }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   284
		print "INFO -Processing Package $pagename \n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   285
		$i=0;
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   286
		$found_counter =0;
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   287
		
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   288
		if ($mypkg =~m/class\=\"bugzilla sortable\"/sg ) { $headerformat="autobug_format"; }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   289
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   290
		while ($mypkg =~ m/\<tr.*?\>(.*?)\<\/tr/sg) { 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   291
			$myheader= $&;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   292
      if ($myheader =~ m/style=\"background-color\:/sg) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   293
        next;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   294
      }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   295
			$myfeat= $1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   296
			$myfeat =~ s/\<\/td\>/\t/sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   297
			$myfeat =~ s/\<.*?\>//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   298
			$myfeat =~ s/\n//sg;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   299
			
7
896da38e2b20 minor fix updates to gettd.pl
victorp@symbian.org
parents: 6
diff changeset
   300
			if ($myfeat =~ m/IDPStatus/sg) { #header for bugzilla mediawiki plugin
896da38e2b20 minor fix updates to gettd.pl
victorp@symbian.org
parents: 6
diff changeset
   301
        next;
896da38e2b20 minor fix updates to gettd.pl
victorp@symbian.org
parents: 6
diff changeset
   302
      }
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   303
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   304
			if ($myfeat =~ m/[A-z]/sg and not $myfeat =~ m/\&lt\;etc/sg and 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   305
			not $myfeat =~ m/\&lt\;Feature/sg and not $myfeat =~ m/Item not available/sg) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   306
				print outputfile "$pagename\t$myfeat\n";
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   307
				if ($splitbklogs) { print tdoutputfile "$pagename\t$myfeat\n";}
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   308
        
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   309
      #  print "matching $myfeat with $count_target\n"    ;
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   310
        if ($myfeat =~ m/$count_target/sg) {$found_counter++;}
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   311
        $i++;
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   312
			}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   313
			
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   314
		}
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   315
  
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   316
  if ($count_target){
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   317
    $mycount=$i."\t".$found_counter;
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   318
  } else {
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   319
    $mycount=$i;
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   320
  }
8
86e7e89c8543 update to planning data and integration.xlsx for week46
victorp@symbian.org
parents: 7
diff changeset
   321
	
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   322
	if ($splitbklogs) { 
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   323
    print soutputfile "$id\t$pagename\t$mycount\t$headerformat\t$whichtd\thttp://developer.symbian.org/wiki/index.php/$pagename\n";
8
86e7e89c8543 update to planning data and integration.xlsx for week46
victorp@symbian.org
parents: 7
diff changeset
   324
	} else {
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   325
    print soutputfile "$id\t$pagename\t$mycount\t$headerformat\thttp://developer.symbian.org/wiki/index.php/$pagename\n";
8
86e7e89c8543 update to planning data and integration.xlsx for week46
victorp@symbian.org
parents: 7
diff changeset
   326
  }
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   327
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   328
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   329
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   330
	close (outputfile);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   331
	close (soutputfile);
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   332
  if ($splitbklogs) { close (tdoutputfile);}
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   333
                           
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   334
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   335
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   336
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   337
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   338
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   339
#help print
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   340
sub printhelp
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   341
{
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   342
       
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   343
	print "\n\n version 1.1
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   344
	\ngettd.pl -t=url -d=domain \n\nRequired parameters for Technology Roadmaps:\n\t -t url containing the technology domain roadmap\n\t -d the technology domain name
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   345
	\n\nOptional Parmeters for Technology Roadmaps\n\t-new if the roadmap has the new wiki format
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   346
  \n\nRequired Parameters for Package backlogs\n\t-p for package backlog analysis. just run gettd.pl -p
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   347
  \n\nOptional Pararmeters for Package backlogs\n\t -compare [f1] [f2] compares two package summary files for changes ignores order
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   348
  \n\t -split splits the content of the backlog output into technology domains. requires package_domains.csv file with mapping details
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   349
  \n\t -count=regexp counts the times that a package backlog line matches the regexp, the results are output to the summary file
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   350
  \n\nCommonOptional parameters\n\t-o filename ,the output is logged into the output.csv file by default\n\t-h for help
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   351
	\n\t recommend to run under cygwin environment and perl version v5.10.0 \n
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   352
  \n\t pages blacklisted for package backlogs are @blist\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   353
	exit;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   354
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   355
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   356
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   357
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   358
#compare bklogs
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   359
sub compare_bklogs {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   360
	#arguments
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   361
	(@bklogs)=@_;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   362
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   363
	if (not $#bklogs == 1) { printhelp;}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   364
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   365
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   366
	$cmd ="cut -f 2,3 ". $bklogs[0] . " | sort -u > tmp1.txt";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   367
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   368
	system($cmd);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   369
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   370
	$cmd ="cut -f 2,3 ". $bklogs[1] . " | sort -u > tmp2.txt";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   371
	system($cmd);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   372
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   373
	exec ("diff tmp1.txt tmp2.txt | grep '[<|>]'");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   374
	system("rm temp*.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   375
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   376
	exit;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   377
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   378
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   379
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   380
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   381
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   382
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   383
#process command line options
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   384
sub cmd_options
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   385
{
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   386
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   387
  my $help;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   388
  my @compare;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   389
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   390
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   391
  GetOptions('h' => \$help,'t=s'=> \$target_url, 'd=s' => \$tdomain , 'o=s' => \$csvfile, 
5
cb5ea404d492 wk44 update to planning_data and also gettd.pl v1.1
victorp@symbian.org
parents: 4
diff changeset
   392
	'a' => \$authon , 'p' => \$ispackage, 'compare=s{2}' =>\@compare, 'new' => \$isnewformat,
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   393
   'split' => \$splitbklogs, 'count=s' => \$count_target);
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   394
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   395
  if (@compare) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   396
	compare_bklogs @compare;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   397
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   398
  }
25
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   399
  if ($count_target) {
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   400
    print "INFO - Seaching for $count_target\n";
48be12a54405 update to gettd.pl including a count option see -h for more info
victorp@symbian.org
parents: 22
diff changeset
   401
  }
4
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   402
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   403
  if ($help) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   404
    printhelp;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   405
  }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   406
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   407
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   408
 if ($ispackage) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   409
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   410
 	$tdomain =" ";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   411
	$target_url = "http://developer.symbian.org/wiki/index.php/Category:Package_Backlog";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   412
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   413
 }  
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   414
 if ($isnewformat){
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   415
    $newtdformat = 1;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   416
 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   417
 }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   418
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   419
 if ( not $target_url) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   420
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   421
	print "ERROR-missing arguments target url\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   422
	printhelp;	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   423
  } 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   424
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   425
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   426
 if (not $tdomain){
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   427
	print "ERROR-missing arguments domain level\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   428
	printhelp;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   429
 }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   430
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   431
 	print "\nINFO-downloading $target_url with label $tdomain\n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   432
  
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   433
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   434
 if (not $csvfile) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   435
	if (not $ispackage) { 
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   436
		$csvfile="output.csv";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   437
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   438
	} else {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   439
		$csvfile="output.txt";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   440
		system ("rm *output.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   441
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   442
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   443
 }
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   444
 print "\nINFO-output recorded in $csvfile \n";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   445
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   446
                                      
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   447
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   448
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   449
#main
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   450
$/ = " ";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   451
$host1 = "developer.symbian.org";
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   452
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   453
cmd_options();
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   454
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   455
if ($authon) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   456
	#file containing login details from http cookie
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   457
	$mycookie = loadfile("mycookie.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   458
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   459
	$auth = "Cookie: " . $mycookie ;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   460
}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   461
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   462
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   463
if ($ispackage) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   464
	getpage($target_url, $host1, $auth, "debug.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   465
	@bklog = parse_category("debug.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   466
	$j=0;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   467
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   468
	foreach (@bklog) {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   469
		getpage("http://".$host1.$_, $host1, $auth, "pkg".$j.".txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   470
		parse_bklog ("pkg".$j.".txt",$csvfile, $j);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   471
		$j++;
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   472
		
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   473
	
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   474
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   475
	}
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   476
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   477
} else {
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   478
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   479
	#foundation releases - add as required
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   480
	@releases=("Symbian\\^2","Symbian\\^3","Symbian\\^4");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   481
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   482
	getpage($target_url, $host1, $auth, "debug.txt");
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   483
	td_roadmap("debug.txt" , $csvfile, $tdomain ,@releases);
98b4ffa15936 oops, adding the .pl file missed the first time - v1.0
victorp@symbian.org
parents:
diff changeset
   484
}