/[pkg-gnupg]/updchk.pl
ViewVC logotype

Contents of /updchk.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 169 - (show annotations) (download)
Sun Dec 6 16:13:24 2009 UTC (3 years, 5 months ago) by dleidert-guest
File MIME type: application/x-perl
File size: 1432 byte(s)
Unable to calculate annotation data on binary file contents.
Fix MIME type.

1 #!/usr/bin/perl -w
2
3 use strict;
4 use warnings;
5
6 my $svncat = "/usr/bin/svnlook cat /svn/pkg-gnupg";
7 my $send = 0;
8 my $infomail;
9
10 open (TREE, "/usr/bin/svnlook tree -N /svn/pkg-gnupg |");
11 my @array = map { $_ =~ /^ ([[:graph:]]+)\/$/m ; }(grep { $_ =~ m/^ ([[:graph:]]+)\/$/m ; } <TREE>);
12 close (TREE);
13
14 if (! @array) { exit(0); }
15
16 $infomail = "Report for packages of Debian GnuPG-Maintainers\n";
17 $infomail .= "***********************************************\n\n";
18
19 foreach (@array) {
20 my $watchpath = "$_" . "/" . "trunk" . "/" . "debian/watch";
21 my $changepath = "$_" . "/" . "trunk" . "/" . "debian/changelog";
22 my $changefile = `$svncat $changepath | /usr/bin/dpkg-parsechangelog -l-`;
23 my ($package, $version) = ($changefile =~ /^Source: (.*?)$/m, $changefile =~ /^Version: ([^-]+)-.*$/m);
24
25 if ( ! system("$svncat $watchpath >> /dev/null 2>&1") ) {
26 my $watchfile = `$svncat $watchpath`;
27 open (USCAN, "$svncat $watchpath | /usr/bin/uscan --no-download --watchfile -" .
28 " --package $package --upstream-version $version 2>&1 |");
29 my @tmp = <USCAN>;
30 if (@tmp) {
31 $infomail .= "@tmp\n";
32 $send = 1;
33 }
34 close (USCAN);
35 }
36 }
37
38 $infomail .= "\n\n";
39
40 if ($send != 0) {
41 open (INFOMAIL, "| /usr/bin/mail -s 'Package information for the pkg-gnupg project'" .
42 " 'Debian GnuPG-Maintainers <pkg-gnupg-maint\@lists.alioth.debian.org>'");
43 print INFOMAIL $infomail;
44 close (INFOMAIL);
45 }
46
47 exit(0);

Properties

Name Value
svn:executable
svn:mime-type application/x-perl

  ViewVC Help
Powered by ViewVC 1.1.5