aboutsummaryrefslogtreecommitdiffstats
path: root/clean_perl
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-08-01 22:45:18 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-08-01 22:48:55 +0200
commitf97c1565515aa0a077a036135985c13d1533744d (patch)
treeac9246b22ca98ad8bed4c0a2b134172fb7bd9a91 /clean_perl
parent0035307a699ac34b292310dd040e43e6eb2a0b6f (diff)
downloadspec-helper-f97c1565515aa0a077a036135985c13d1533744d.tar
spec-helper-f97c1565515aa0a077a036135985c13d1533744d.tar.gz
spec-helper-f97c1565515aa0a077a036135985c13d1533744d.tar.bz2
spec-helper-f97c1565515aa0a077a036135985c13d1533744d.tar.xz
spec-helper-f97c1565515aa0a077a036135985c13d1533744d.zip
clean perl stuff for perl-5.28 too
Diffstat (limited to 'clean_perl')
-rwxr-xr-xclean_perl5
1 files changed, 3 insertions, 2 deletions
diff --git a/clean_perl b/clean_perl
index 99d0d46..4adff6b 100755
--- a/clean_perl
+++ b/clean_perl
@@ -1,8 +1,8 @@
#!/bin/sh
-d=$RPM_BUILD_ROOT/usr/lib/perl5
+for d in $RPM_BUILD_ROOT/usr/lib/perl5 $RPM_BUILD_ROOT/usr/share/perl5 /usr/lib64/perl5;do
-[ -d $d ] || exit 0
+[ -d $d ] || continue
find $d -name ".packlist" | xargs rm -f
@@ -18,3 +18,4 @@ for i in $(find $d -name "*.bs"); do
done
find $d -depth -mindepth 2 -type d -empty -exec rmdir {} \;
+done