SCM Repository
| [publicity] / dpn / scripts / newpkgs |
View of /dpn/scripts/newpkgs
Parent Directory
|
Revision Log
Revision 6 -
(download)
(annotate)
Thu Mar 25 15:44:10 2010 UTC (3 years, 2 months ago) by tolimar
File size: 782 byte(s)
Thu Mar 25 15:44:10 2010 UTC (3 years, 2 months ago) by tolimar
File size: 782 byte(s)
Add script by Tollef Fog Heen to create the new (preliminary) package list
#! /usr/bin/perl -w use strict; my $infile = $ARGV[0] || "http://packages.debian.org/unstable/main/newpkg"; my $content = `lynx -width=300 -dump $infile`; my (@packages,@output); foreach my $line (split "\n",$content) { # $line =~ m/^\s*(\*|\d+\. http:)/; if ($line =~ m/^\s*\*/) { #) $line =~ s/^\s*\*\s*//; $line =~ s/\s*\(\d+ days? new\)//; push @packages, $line; } elsif ($line =~ m,^\s*(\d+)\. (http://.*),) { my $linkno = $1; my $url = $2; foreach my $l (@packages) { if ($l =~ s/^\[$linkno\]//) { $l =~ s/:/ --/; $l =~ s/ -- / \— /; push @output, "<li><a href=\"$url\">\\\n\t$l</a></li>"; } } # print $line; } } print "<ul>\n"; print join "\n",@output; print "\n</ul>\n";
| root@alioth.debian.org | ViewVC Help |
| Powered by ViewVC 1.0.0 |

