OSSP CVS Repository

ossp - Check-in [1873]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1873
Date: 2002-Feb-14 21:16:36 (local)
2002-Feb-14 20:16:36 (UTC)
User:rse
Branch:
Comment: more optical polishing
Tickets:
Inspections:
Files:
ossp-web/SHARE/ossp_css.wml      1.3 -> 1.4     4 inserted, 0 deleted
ossp-web/SHARE/ossp_pkg.wml      1.1 -> 1.2     71 inserted, 31 deleted
ossp-web/pkg/tool/shtool/index.wml      1.2 -> 1.3     16 inserted, 18 deleted

ossp-web/SHARE/ossp_css.wml 1.3 -> 1.4

--- ossp_css.wml 2002/02/14 11:04:43     1.3
+++ ossp_css.wml 2002/02/14 20:16:36     1.4
@@ -51,6 +51,10 @@
 A:link               { color: <lhr>; }
 A:visited            { color: <lhr>; }
 A:hover              { text-decoration: underline; }
+A.plain              { text-decoration: none; font-weight: normal; }
+A:link.plain         { color: <lfg>; }
+A:visited.plain      { color: <lfg>; }
+A:hover.plain        { text-decoration: underline; }
 .light               { background: <lbg>; color: <lfg>; }
 .light A:link        { color: <lhr>; }
 .light A:visited     { color: <lhr>; }


ossp-web/SHARE/ossp_pkg.wml 1.1 -> 1.2

--- ossp_pkg.wml 2002/02/14 17:02:49     1.1
+++ ossp_pkg.wml 2002/02/14 20:16:36     1.2
@@ -28,48 +28,73 @@
   <restore width pdone cdone ctext ctodo/>
 </define-tag>
 
-
-#   define a <filelist> tag which can be used to create a file listing which
-#   is optically more compact than the stuff Apache's mod_autoindex creates.
-#   Especially the current version is marked red, too.
+#   define a macro which can be used to create a file listing which
+#   is optically more compact than the stuff Apache's mod_autoindex
+#   creates.
+..PAGE_CSS>>
+TR.files0N                            { background: #f5f5f0; }
+TR.files1N                            { background: #e5e5e0; }
+.files0N,.files1N,A.files0N,A.files1N { color: #000000; }
+TR.files0S,TR.files1S                 { background: #993333; }
+.files0S,.files1S,A.files0S,A.files1S { color: #ffffff; }
+TR.files0U,TR.files1U                 { background: #666699; }
+.files0U,.files1U,A.files0U,A.files1U { color: #ffffff; }
+<<..
 <define-tag pkg_files>
 <preserve url>
 <preserve directory>
 <preserve files>
+<preserve stable>
+<preserve unstable>
 <set-var %attributes>
-<table width=100% cellspacing=1 cellpadding=0 border=0>
-<tr>
-  <td>File</td>
-  <td align=right>Bytes</td><td align=right>Timestamp</td>
-</tr>
 <:
 my $url       = "<get-var url>";
-$url =~ s|/+$||sg;
 my $directory = "<get-var directory>";
 my $files     = "<get-var files>";
-my $highlight = "<get-var highlight>";
+my $stable    = "<get-var stable>";
+my $unstable  = "<get-var unstable>";
+$url =~ s|/+$||s;
+:>
+<table width=100% cellspacing=1 cellpadding=0 border=0>
+<tr>
+  <td colspan=3>
+    <b>Location:</b> <a href="<get-var url>" class=plain><get-var url></a>
+  </td>
+</tr>
+<tr>
+  <td><b>File:</b></td>
+  <td align=right><b>Size:</b></td>
+  <td align=right><b>Time:</b></td>
+</tr>
+<:
 my $odir = chdir($directory) || die;
 my @F = reverse sort { (stat($a))[9] <=> (stat($b))[9]; } (glob($files));
 chdir($odir);
 my $O = '';
-@COL = (
-        '#e5e5e0',
-        'NONE',
-);
-$ncol = 1;
+$ncol = 0;
 foreach my $f (@F) {
     my @S = stat($f);
+        my $size = $S[7];
+        if ($size > (1024*1024)) {
+                $size = sprintf("%.1fMB", $size / (1024*1024));
+        }
+        elsif ($size > (1024)) {
+                $size = sprintf("%.1fKB", $size / (1024));
+        }
     $f = "$f/" if (-d $f);
     my @T = localtime($S[9]);
     my @moy = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
-    $f = "<a href=\"".$url."/".$f."\">$f</a>";
         $ncol = ($ncol + 1) % 2;
-        $col  = $COL[$ncol];
-    my $e = ($col eq "NONE" ? "<tr>" : "<tr bgcolor=\"$col\">").
-                  "<td width=100%>".$f."&nbsp;&nbsp;</td>" .
-                      "<td align=right>&nbsp;&nbsp;".$S[7]."</td>" .
-                  "<td align=right>&nbsp;&nbsp;".sprintf("%"."02d-%"."s-%"."04d", $T[3], $moy[$T[4]], 1900+$T[5]) . "</td>".
+        my $type = "N";
+        $type = "S" if ($f eq $stable);
+        $type = "U" if ($f eq $unstable);
+    my $class = "files${ncol}${type}";
+    $f = "<a href=\"".$url."/".$f."\" class=$class>$f</a>";
+    my $e = "<tr class=$class>" .
+                "  <td width=100%>".$f."&nbsp;&nbsp;</td>" .
+                    "  <td align=right>&nbsp;&nbsp;".$size."</td>" .
+                "  <td align=right>&nbsp;&nbsp;".sprintf("%"."02d-%"."s-%"."04d", $T[3], $moy[$T[4]], 1900+$T[5]) . "</td>".
                         "</tr>";
     $O .= $e . "\n";
 }
@@ -79,6 +104,8 @@
 <restore url>
 <restore directory>
 <restore files>
+<restore stable>
+<restore unstable>
 </define-tag>
 
 #   define a package summary list
@@ -113,12 +140,12 @@
             <a href="<get-var name>/"><b><get-var longname></b></a>
                 <ifeq "<get-var derived>" "yes" "&nbsp;<b>*</b>">
         </td>
-    <td>stable:   
+    <td>Stable:   
       <ifeq "<get-var stable>" "none" "none"
         <a href="ftp://ftp.ossp.org/pkg/tool/<get-var name>/<get-var name>-<get-var stable>.tar.gz"><get-var stable></a>
       >
         </td>
-    <td>unstable: 
+    <td>Unstable: 
           <ifeq "<get-var unstable>" "none" "none"
             <a href="ftp://ftp.ossp.org/pkg/tool/<get-var name>/<get-var name>-<get-var unstable>.tar.gz"><get-var unstable></a>
           >
@@ -148,14 +175,18 @@
 <set-var %attributes>
 <table cellspacing=0 cellpadding=0 border=0> 
   <tr>
-    <td>Stable Version:</td><td><get-var stable></td><td>&nbsp;(<get-var stable_date>)</td>
-  </tr>
-  <tr>
-    <td>Unstable Version:&nbsp;&nbsp;</td><td><get-var unstable></td><td>&nbsp;(<get-var unstable_date>)</td>
-  </tr>
-  <tr>
-    <td>Done:</td><td colspan=2><pbar width=100 pdone="<get-var done>" cdone="#b5b5b0" ctext="#f5f5f0" ctodo="#996666"></td>
+    <td>Stable Version:&nbsp;&nbsp;</td><td class=heavy><get-var stable></td><td>&nbsp;(<get-var stable_date>)</td>
   </tr>
+  <ifeq "<get-var unstable>" "none" "" <group
+    <tr>
+      <td>Unstable Version:&nbsp;&nbsp;</td><td class=heavy><get-var unstable></td><td>&nbsp;(<get-var unstable_date>)</td>
+    </tr>
+  >>
+  <ifeq "<get-var done>" "100" "" <group
+    <tr>
+      <td>Done:</td><td colspan=2><pbar width=100 pdone="<get-var done>" cdone="#b5b5b0" ctext="#f5f5f0" ctodo="#996666"></td>
+    </tr>
+  >>
 </table>
 <restore stable>
 <restore unstable>
@@ -164,3 +195,12 @@
 <restore done>
 </define-tag>
 
+<define-tag pkg_author>
+<preserve name>
+<preserve mail>
+<set-var %attributes>
+  <get-var name> &lt;<a href="mailto:<get-var mail>"><get-var mail></a>&gt;<br>
+<restore name>
+<restore mail>
+</define-tag>
+


ossp-web/pkg/tool/shtool/index.wml 1.2 -> 1.3

--- index.wml    2002/02/14 17:20:59     1.2
+++ index.wml    2002/02/14 20:16:36     1.3
@@ -15,18 +15,22 @@
 and installation of such packages.
 
 <p>
-Notice: <a href="http://www.gnu.org/software/shtool/">GNU shtool</a> and
-OSSP shtool are exactly the same. OSSP shtool just is a companion tool
-to <a href="http://www.gnu.org/software/autoconf/">GNU autoconf</a>,
-<a href="http://www.gnu.org/software/libtool/">GNU libtool</a> and <a
-href="http://www.gnu.org/software/automake/">GNU automake</a> and so it
-officially become a GNU project in year 2000. That's why its primary
-name is now GNU shtool, although it is still developed by the OSSP
-project only.
+Notice: <a href="http://www.gnu.org/software/shtool/">GNU
+shtool</a> and OSSP shtool are exactly the same. OSSP
+shtool just considered as a companion tool to <a
+href="http://www.gnu.org/software/autoconf/">GNU autoconf</a>, <a
+href="http://www.gnu.org/software/libtool/">GNU libtool</a> and <a
+href="http://www.gnu.org/software/automake/">GNU automake</a> and
+so also became an official part of the GNU project. That's why its
+primary name is now GNU shtool, although it is still developed by
+the OSSP project only. The official companion GNU locations are: <a
+href="http://www.gnu.org/software/shtool/">http://www.gnu.org/software/s
+htool/</a> and <a
+href="ftp://ftp.gnu.org/gnu/shtool/">ftp://ftp.gnu.org/gnu/shtool/</a>.
 
 <h2>Authors</h2>
 
-Ralf S. Engelschall &lt;<a href="mailto:rse@engelschall.com">rse@engelschall.com</a>&gt;<br>
+<pkg_author name="Ralf S. Engelschall" mail="rse@engelschall.com">
 
 <h2>Status</h2>
 
@@ -40,12 +44,6 @@
 <pkg_files 
     url=$(FTP_ROOT_URL)/pkg/tool/shtool/
     directory=$(FTP_ROOT_DIR)/pkg/tool/shtool/
-    files="shtool-*.tar.gz">
-
-<h2>Locations</h2>
-
-<a href="http://www.ossp.org/pkg/tool/shtool/">http://www.ossp.org/pkg/tool/shtool/</a><br>
-<a href="ftp://ftp.ossp.org/pkg/tool/shtool/">ftp://ftp.ossp.org/pkg/tool/shtool/</a><br>
-<a href="http://www.gnu.org/software/shtool/">http://www.gnu.org/software/shtool/</a><br>
-<a href="ftp://ftp.gnu.org/gnu/shtool/">ftp://ftp.gnu.org/gnu/shtool/</a><br>
-
+    files="shtool-*.tar.gz" 
+        stable="shtool-1.6.0.tar.gz" unstable="none">
+        

CVSTrac 2.0.1