File: modchk

package info (click to toggle)
apache 1.3.34-4.1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,824 kB
  • ctags: 90
  • sloc: sh: 1,273; makefile: 686; perl: 215
file content (27 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl
$|=1;

chdir ("debian/apache-common/usr/lib/apache/1.3");

foreach $file (`ls *info`)
{
    chomp ($file);
    $file =~ /^\d+(.*)\.info$/;
    if (! -f "$1.so")
    {
        print "modchk: info $file ($1) ... " ;
        unlink ($file);
        print "deleted\n";
    }
}

foreach $file (`ls *so`)
{
    chomp ($file);
    $file =~ /^(.*)\.so$/;
    $info = `ls *$1.info 2> /dev/null`;
    if ($info eq "")
    {
        print "modchk: uninfoed dso $file ($1)\n" ;
    }
}