aboutsummaryrefslogtreecommitdiffstats
path: root/clean_perl
blob: 7cb3fb21d4aa199facb6c890ccb91b999118c6c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -x

d=$RPM_BUILD_ROOT/usr/lib/perl5

[ -d $d ] || exit 0


find $d -name ".packlist" | xargs rm -f

for i in $(find $d -name "*.bs"); do
    if [ -s $i ]; then
      echo "non empty *.bs file, please mail pixel@mandrakesoft.com about this!"
    else
      rm -f $i
    fi
done

# remove .ix's
find $d -name "*.ix" | xargs rm -f