Browse Source

Move server side scripts in subdirectories of examples

suites/ascii
Bill Allombert 9 years ago
parent
commit
4ed26fc8e0
  1. 8
      debian/changelog
  2. 2
      debian/rules
  3. 0
      examples/bin/README.examples
  4. 25
      examples/bin/gensections.pl
  5. 0
      examples/bin/popanal.py
  6. 0
      examples/bin/popcon-process.sh
  7. 0
      examples/bin/popcon-stat.pl
  8. 0
      examples/bin/popcon.pl
  9. 0
      examples/bin/prepop.pl
  10. 0
      examples/cgi-bin/popcon-submit.cgi

8
debian/changelog

@ -1,3 +1,11 @@
popularity-contest (1.58) UNRELEASED; urgency=low
* Move examples script to examples subdirectory.
- Add gensections.pl
- Do not install clean-filter/clean-genpkglist
-- Bill Allombert <ballombe@debian.org> Tue, 14 May 2013 18:27:45 +0200
popularity-contest (1.57) unstable; urgency=low
* Please note when reading stats that wheezy was released with 1.56.

2
debian/rules

@ -42,7 +42,7 @@ binary-indep: build install
# Compress before the examples are installed for easy access to the
# server scripts
dh_compress
dh_installexamples prepop.pl popcon-process.sh popanal.py popcon.pl popcon-stat.pl popcon-submit.cgi clean-filter clean-genpkglist README.examples
dh_installexamples examples/bin examples/cgi-bin
dh_perl -d
dh_strip
dh_fixperms

0
README.examples → examples/bin/README.examples

25
examples/bin/gensections.pl

@ -0,0 +1,25 @@
#! /usr/bin/perl -wT
my $mirrorbase = "/srv/mirrors/debian";
my $docurlbase = "";
$ENV{PATH}="/bin:/usr/bin";
for (glob("$mirrorbase/dists/stable/*/binary-*/Packages.gz"))
{
/([^[:space:]]+)/ or die("incorrect package name");
$file = $1;#Untaint
open AVAIL, "-|:encoding(UTF-8)","zcat $file";
while(<AVAIL>)
{
/^Package: (.+)/ and do {$p=$1;next;};
/^Section: (.+)/ or next;
$section{$p}=$1;
}
close AVAIL;
}
@pkgs=sort keys %section;
for (@pkgs)
{
print "$_ $section{$_}\n";
}

0
popanal.py → examples/bin/popanal.py

0
popcon-process.sh → examples/bin/popcon-process.sh

0
popcon-stat.pl → examples/bin/popcon-stat.pl

0
popcon.pl → examples/bin/popcon.pl

0
prepop.pl → examples/bin/prepop.pl

0
popcon-submit.cgi → examples/cgi-bin/popcon-submit.cgi

Loading…
Cancel
Save