3 # Clean up $TMP and other tepmorary files generated by the
6 BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
10 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
11 $TMP=tmpdir($PACKAGE);
12 $EXT=pkgext($PACKAGE);
15 doit("rm","-f","debian/$EXT\substvars",
16 "debian/$EXT\postinst.debhelper",
17 "debian/$EXT\postrm.debhelper",
18 "debian/$EXT\preinst.debhelper",
19 "debian/$EXT\prerm.debhelper");
22 doit ("rm","-rf",$TMP);
27 doit("rm","-f","--",@ARGV);
31 doit("rm","-f","debian/files");
34 # Remove other temp files.
35 # (The \s+ is important, \s won't work because find would get null
36 # parameters). Note that you _don't_ quote wildcards used by find
38 doit(split(/\s+/,"find . ( -name #*# -o -name *~ -o -name DEADJOE
39 -o -name *.orig -o -name *.rej -o -name *.bak
40 -o -name .*.orig -o -name .*.rej -o -name .SUMS
41 -o -name TAGS -o -name core -o ( -path */.deps/* -a -name *.P )
42 ) -exec rm -f {} ;"));