File: perl.clean

package info (click to toggle)
libb-perlreq-perl 0.82-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 700 kB
  • ctags: 909
  • sloc: perl: 1,090; sh: 69; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -eu

PROG="${0##*/}"
cd "${RPM_BUILD_ROOT:?}"

set -- ./usr/*/perl5/
[ -d "$1" ] || exit 0

find "$@" -type f -name .packlist -exec \
	rm -fv -- '{}' '+'

find "$@" -type f -name \*.bs -size 0 -exec \
	rm -fv -- '{}' '+'

once=
find "$@" -type f -name \*.bs |
while read -r f; do
	[ -n "$once" ] ||
	echo "WARNING: $PROG: non-empty *.bs file(s) found:"
	echo "    $f"
	once=1
done >&2

find "$@" -type f -name perllocal.pod -exec \
	rm -fv -- '{}' '+'