head 1.10; access; symbols; locks; strict; comment @# @; 1.10 date 2006.07.30.08.08.17; author rse; state Exp; branches; next 1.9; commitid s4S8jqOkUORliRGr; 1.9 date 2002.11.01.08.59.13; author rse; state Exp; branches; next 1.8; 1.8 date 2002.10.02.12.48.45; author rse; state Exp; branches; next 1.7; 1.7 date 2002.10.02.12.25.02; author rse; state Exp; branches; next 1.6; 1.6 date 2002.08.11.13.49.08; author rse; state Exp; branches; next 1.5; 1.5 date 2002.07.19.13.28.02; author rse; state Exp; branches; next 1.4; 1.4 date 2002.03.30.19.15.47; author rse; state Exp; branches; next 1.3; 1.3 date 2002.02.15.12.07.14; author rse; state Exp; branches; next 1.2; 1.2 date 2002.02.14.20.16.36; author rse; state Exp; branches; next 1.1; 1.1 date 2002.02.14.17.02.49; author rse; state Exp; branches; next ; desc @@ 1.10 log @release OSSP js 1.6.20060730 @ text @## ## ossp_pkg.wml -- Package Macros ## Copyright (c) 2000-2001 Ralf S. Engelschall ## # define a process bar />/> /> 100/>/> /> 100/>/> 0 "" >
% />/> 0 "" > />/>
# 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; } <<.. <: my $url = ""; my $directory = ""; my $files = ""; my $stable = ""; my $unstable = ""; $url =~ s|/+$||s; :> # <: my $odir = chdir($directory) || die; my @@F = reverse sort { (stat($a))[9] <=> (stat($b))[9]; } (glob($files)); chdir($odir); my $O = ''; $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'); $ncol = ($ncol + 1) % 2; my $type = "N"; $type = "S" if ($f =~ m|$stable|); $type = "U" if ($f =~ m|$unstable|); my $class = "files${ncol}${type}"; #my $md5 = `openssl md5 "$f"`; #$md5 =~ s|^MD5\(.+?\)\s*=\s*(\S+)|$1|s; ##$md5 =~ s|^([a-zA-Z0-9]{16})([a-zA-Z0-9]{16})$|$1
$2|; #$md5 = "$md5"; $f = "$f"; my $e = "" . " " . " " . # " " . " ". ""; $O .= $e . "\n"; } print $O; :>
ChangeLog: ChangeLog
Repository:
Distribution:

Distribution Files: Size:MD5: Time:
".$f."    ".$size."  ".$md5."  ".sprintf("%"."02d-%"."s-%"."04d", $T[3], $moy[$T[4]], 1900+$T[5]) . "
# define a package summary list %body
* derived from external sources
" "yes" " *"> Stable: " "none" "none" > Unstable: " "none" "none" > " "none" "" >> " "none" "" >> # " "100" "" # >>
Stable Version:   () " "" "" " "none" "" Bug Reporting] >> >>
Unstable Version:   () " "" "" Bug Reporting] >>
Genesis:  
Finished:
#
<>
OSSP is a sub-project of OSSP and hence a fully non-profit Open Source Software effort. The development on OSSP projects like OSSP is supported by the contributions and sponsoring of individuals and companies. You can support OSSP and the other OSSP projects yourself by contributing source fixes and enhancements or by donating money. To reward the efforts on OSSP , just press the button to the right to perform a secure PayPal online money transaction to the OSSP project. Credit will be given to you on the OSSP Sponsors page once your donation was received.     
() ## ## Next-Generation Package Macros ## <: my $ref = '%body'; my $O = ''; if ($ref =~ m/^((https?|ftp):\/\/\S+)$/) { $O = "$ref"; } elsif ($ref =~ m|^(\S+)\(([1-9])\)@@(/\S+)$|) { $O = "$1($2)"; } elsif ($ref =~ m|^(\S+)\(([1-9])\)$|) { $O = "" . "$1($2)"; } elsif ($ref =~ m|^OSSP\s+(\S+)$|) { my $name = $1; foreach my $path (qw(.. ../../lib ../../tool)) { if (-d "$path/$name") { $O = "$ref"; last; } } } if ($O eq '') { $O = $ref; } print $O; :> " "jargon" foo FIXME /> @ 1.9 log @release OSSP sa 1.0.0 and cleanup some website edges @ text @d57 1 a57 1 Repository: d62 1 a62 1 Distribution: d66 6 a71 1 File: d73 1 d100 4 d108 1 d165 1 a165 1 d188 1 a188 1 " "100" "" Done: d193 5 d200 1 a200 1 d252 45 @ 1.8 log @flush pending changes @ text @d91 2 a92 2 $type = "S" if ($f eq $stable); $type = "U" if ($f eq $unstable); @ 1.7 log @support for CVSTrac based bug reporting and manpage rendering @ text @d160 5 a164 1   [Bug Reporting] d170 5 a175 3   [Bug Reporting] @ 1.6 log @flush the work of this afternoon: PayPal support, cleanups, etc @ text @d154 1 a154 1 d159 3 d167 3 d177 2 a178 1 d221 7 @ 1.5 log @add OSSP fsl @ text @d181 35 @ 1.4 log @fix macros @ text @d44 1 a44 1 d57 6 a62 1 Location: d105 1 a105 1 @ 1.3 log @fix URLs @ text @d44 1 a44 5 d100 1 a100 5 d118 1 a118 9 d145 1 a145 8 d149 1 a149 5 d166 1 a166 5 d170 1 a170 2 d173 1 a173 2 @ 1.2 log @more optical polishing @ text @d134 1 d146 1 a146 1 d151 1 a151 1 d168 1 @ 1.1 log @use new pkg_status @ text @d31 12 a42 4 # define a 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. d47 2 d50 8 d60 8 a67 2 File BytesTimestamp a69 5 my $url = ""; $url =~ s|/+$||sg; my $directory = ""; my $files = ""; my $highlight = ""; d74 1 a74 5 @@COL = ( '#e5e5e0', 'NONE', ); $ncol = 1; d77 7 a87 1 $f = "$f"; d89 9 a97 5 $col = $COL[$ncol]; my $e = ($col eq "NONE" ? "" : ""). "".$f."  " . "  ".$S[7]."" . "  ".sprintf("%"."02d-%"."s-%"."04d", $T[3], $moy[$T[4]], 1900+$T[5]) . "". d107 2 d143 1 a143 1 stable: d148 1 a148 1 unstable: d178 1 a178 7 Stable Version: () Unstable Version:   () Done: d180 10 d196 9 @