aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hugh...@apache.org
Subject svn commit: r1325877 - /aries/scripts/create_modules_table.pl
Date Fri, 13 Apr 2012 17:56:28 GMT
Author: hughesj
Date: Fri Apr 13 17:56:27 2012
New Revision: 1325877

URL: http://svn.apache.org/viewvc?rev=1325877&view=rev
Log:
Updates to cope with new build structure

Modified:
    aries/scripts/create_modules_table.pl

Modified: aries/scripts/create_modules_table.pl
URL: http://svn.apache.org/viewvc/aries/scripts/create_modules_table.pl?rev=1325877&r1=1325876&r2=1325877&view=diff
==============================================================================
--- aries/scripts/create_modules_table.pl (original)
+++ aries/scripts/create_modules_table.pl Fri Apr 13 17:56:27 2012
@@ -17,21 +17,24 @@ if (!-f $release_file) {
 $cgi = "http://www.apache.org/dyn/closer.cgi/aries/";
 $dist = "http://www.apache.org/dist/aries/";
 
-$oaa = "org.apache.aries.";
-
 #HTML fragments
 $open_td = "<td class=\"confluenceTd\"\>";
 $close_td = "</td>";
+$open_th = "<th class=\"confluenceTh\"\>";
+$close_th = "</th>";
 $open_tr = "<tr>";
 $close_tr = "</tr>";
 $ar = "<A href=\"";
 $c_jar = "\">jar</A>";
+$c_zip = "\">zip</A>";
 $c_asc = "\">asc</A>";
 $c_md5 = "\">md5</A>";
 $c_sha1 = "\">sha1</A>";
 
 open (MOD, "aries_release_versions.txt");
 
+print $open_tr.$open_th." Sub project ".$close_th.$open_th." Module ".$close_th.$open_th."
Version ".$close_th.$open_th." Binary ".$close_th.$open_th." Source ".$close_th.$open_th."
Buildable src ".$close_th.$open_th." Comments ".$close_th.$close_tr."\n"; 
+
 while (<MOD>) {
     if (/Module: (\w+)/i) {
         $module = $1;
@@ -53,7 +56,7 @@ foreach $keys (%bundle_info) {
 }
 
 sub print_module_header {
-    print $open_tr.$open_td." ".$module." ".$close_td.$open_td.$close_td.$open_td." - ".$close_td.$open_td."
- " .$close_td.$open_td." - ".$close_td.$open_td.$close_td.$close_tr."\n";
+    print $open_tr.$open_td." ".$module." ".$close_td.$open_td.$close_td.$open_td." - ".$close_td.$open_td."
- " .$close_td.$open_td." - ".$close_td.$open_td." - ".$close_td.$open_td.$close_td.$close_tr."\n";
 }
 
 
@@ -69,27 +72,49 @@ sub print_table_row {
     $s_md5 = $bundle."-".$version.".sources.jar.md5";
     $s_sha1 = $bundle."-".$version.".sources.jar.sha1";
 
-    $line1 = $ar.$cgi.$oaa.$jar.$c_jar.
+    $bs_zip = $bundle."-".$version.".source-release.zip";
+    $bs_asc = $bundle."-".$version.".source-release.zip.asc";
+    $bs_md5 = $bundle."-".$version.".source-release.zip.md5";
+    $bs_sha1 = $bundle."-".$version.".source-release.zip.sha1";
+
+    $line1 = $ar.$cgi.$jar.$c_jar.
              " (".
-             $ar.$dist.$oaa.$asc.$c_asc.
+             $ar.$dist.$asc.$c_asc.
              ", ".
-             $ar.$dist.$oaa.$md5.$c_md5.
+             $ar.$dist.$md5.$c_md5.
              ", ".
-             $ar.$dist.$oaa.$sha1.$c_sha1.
+             $ar.$dist.$sha1.$c_sha1.
              ")";
 
-    $line2 = $ar.$cgi.$oaa.$s_jar.$c_jar.
+    $line2 = $ar.$cgi.$s_jar.$c_jar.
              " (".
-             $ar.$dist.$oaa.$s_asc.$c_asc.
+             $ar.$dist.$s_asc.$c_asc.
              ", ".
-             $ar.$dist.$oaa.$s_md5.$c_md5.
+             $ar.$dist.$s_md5.$c_md5.
              ", ".
-             $ar.$dist.$oaa.$s_sha1.$c_sha1.
+             $ar.$dist.$s_sha1.$c_sha1.
              ")";
              
+             
+    if ($bundle =~ /^org\.apache\.aries\.(blueprint|jndi|proxy|quiesce\.manager|testsupport\.unit|util)/)
{
+
+      $line3 = $ar.$cgi.$bs_zip.$c_zip.
+               " (".
+               $ar.$dist.$bs_asc.$c_asc.
+               ", ".
+               $ar.$dist.$bs_md5.$c_md5.
+               ", ".
+               $ar.$dist.$bs_sha1.$c_sha1.
+               ")";
+    } else {
+      $line3 = " - ";
+    }
+
     print $open_tr.$open_td.$close_td.$open_td." ".$bundle." ".$close_td.$open_td." ".$version."
".$close_td.$open_td."\n";
     print $line1."\n";
     print $close_td.$open_td."\n";
     print $line2."\n";
+    print $close_td.$open_td."\n";
+    print $line3."\n";
     print $close_td.$open_td.$close_td.$close_tr."\n";
 }



Mime
View raw message