aboutsummaryrefslogtreecommitdiffstats
path: root/clean_perl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-08-17 13:05:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-08-17 13:05:14 +0000
commitdcbf4039dc03fb2c05279506e1320079790e11c3 (patch)
treed5e1b32c2b110f33e8d950c1b4fa84a7967d08c5 /clean_perl
parent948d68d30a7cc9c3745a18b987a45e7f8c7e016c (diff)
downloadspec-helper-dcbf4039dc03fb2c05279506e1320079790e11c3.tar
spec-helper-dcbf4039dc03fb2c05279506e1320079790e11c3.tar.gz
spec-helper-dcbf4039dc03fb2c05279506e1320079790e11c3.tar.bz2
spec-helper-dcbf4039dc03fb2c05279506e1320079790e11c3.tar.xz
spec-helper-dcbf4039dc03fb2c05279506e1320079790e11c3.zip
no_comment
Diffstat (limited to 'clean_perl')
-rwxr-xr-xclean_perl19
1 files changed, 19 insertions, 0 deletions
diff --git a/clean_perl b/clean_perl
new file mode 100755
index 0000000..7cb3fb2
--- /dev/null
+++ b/clean_perl
@@ -0,0 +1,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