File: cleanInstall.pl

package info (click to toggle)
glgrib 1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,861,476 kB
  • sloc: cpp: 20,811; ansic: 6,530; perl: 2,902; sh: 513; makefile: 147; python: 58; sql: 18
file content (19 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

use warnings FATAL => 'all';
use strict;
use File::Find;
use File::Path;
use File::Basename;

&find ({wanted => sub 
{ 
  my $f = $File::Find::name; 
  my $b = &basename ($f);
  my $d = &dirname ($f);

  &rmtree ($f) if (($b eq '.packlist') || ($b eq 'perllocal.pod') || ($b eq '__pycache__')); 

}, no_chdir => 1}, 'debian/tmp');