From 733c14d60ee0f16681b10bf230e78089ccd51ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Mon, 30 Jan 2006 09:56:08 +0000 Subject: [PATCH] changed ages ago git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8493 a1c6a512-1295-4272-9138-f99709370657 --- www/dailymod.pl | 76 +++++++++++++++++++++++++++++++------------------ www/dailysrc.pl | 14 +++------ 2 files changed, 53 insertions(+), 37 deletions(-) diff --git a/www/dailymod.pl b/www/dailymod.pl index 318149b975..9e3d118ba2 100755 --- a/www/dailymod.pl +++ b/www/dailymod.pl @@ -4,8 +4,15 @@ require "rockbox.pm"; my $basedir = "/home/dast/rockbox-build/daily-build"; -my @list=("player", "recorder", "fmrecorder", "recorderv2", - "recorder8mb", "fmrecorder8mb", "ondiofm", "ondiosp"); +my @list=("player", + "recorder", "recorder8mb", + "fmrecorder", "fmrecorder8mb", + "recorderv2", + "ondiofm", "ondiosp", + "h100", "h120", "h300", "ipodcolor", "ipodnano", + + # install and source are special cases + "install", "source"); for(@list) { my $dir = $_; @@ -19,44 +26,59 @@ for(@list) { } } -$color1 = 0xc6; -$color2 = 0xd6; -$color3 = 0xf5; -$font1 = ""; -$font2 = ""; - for(reverse sort keys %date) { my $d = $_; my $nice = $d; if($d =~ /(\d\d\d\d)(\d\d)(\d\d)/) { $nice = "$1-$2-$3"; } - $col = sprintf("style=\"background-color: #%02x%02x%02x\"", - $color1, $color2, $color3); - print "

Download daily build

\n"; - print "\n"; + print "
\n"; $color1 -= 0x18; $color2 -= 0x18; $color3 -= 0x18; - for(@list) { - my $n=0; - my $m = $_; - printf "\n"; + my $count = 0; + my $split = int((scalar @list) / 2); + my $x = 0; + my @head; + + foreach $t (@list) { + my $show = $t; + $show =~ s/recorder/rec/; + # Remove the comment below to get long names + # $show = $longname{$t}; + $head[$x] .= "\n"; + $count++; + if ($count == $split) { + $x++; + } + } + print "$head[0]\n"; + + $count = 0; + for(@list) { + my $m = $_; + printf "\n"; + + $count++; + if ($count == $split) { + print "$head[1]\n"; + } } - printf ""; print "\n"; - $font1 = $font2 = ""; last; } print "
$font1$m$font2

"; - # new-style full zip: - if( -f "daily/$m/rockbox-${m}-${d}.zip") { - printf "%slatest", - $n?", ":""; - $n++; - } - print "$font2

old versions

$show
\"$m\"
"; + # new-style full zip: + my $file = "rockbox-${m}-${d}.zip"; + if($m eq "source") { + $file = "rockbox-daily-${d}.tar.gz"; + } + elsif($m eq "install") { + $file = "Rockbox-${d}-install.exe"; + } + if( -f "$basedir/$m/$file") { + printf "latest", + } + print "

older

${font1}windows installer$font2

"; - print "latest", - "

old versions

\n"; diff --git a/www/dailysrc.pl b/www/dailysrc.pl index 1fa1f8ac22..0143909c39 100755 --- a/www/dailysrc.pl +++ b/www/dailysrc.pl @@ -7,21 +7,15 @@ opendir(DIR, $basedir) or @tarballs = sort grep { /^rockbox-daily-/ } readdir(DIR); closedir DIR; -print "\n";