reordered cleanups; fixed out "cd ./etc/pam.d"

This commit is contained in:
Дмитрий Левин 2003-12-03 11:51:33 +00:00
parent ab12fc3c63
commit 5edbe53d0f

View File

@ -63,8 +63,14 @@ find .$RPM_CLEANUP_TOPDIR -type f \( \
find .$RPM_CLEANUP_TOPDIR -type d -name CVS -print0 | find .$RPM_CLEANUP_TOPDIR -type d -name CVS -print0 |
xargs -r0 rm -vrf -- xargs -r0 rm -vrf --
if cd ./etc/pam.d >/dev/null 2>&1; then for d in ./lib ./usr/lib ./usr/X11R6/lib; do
find -type f -mindepth 1 -maxdepth 1 -print0 | [ -d "$d" ] || continue
find "$d" -type f -mindepth 1 -maxdepth 1 -name 'lib*.la' -print0 |
xargs -r0 rm -fv --
done
if [ -d ./etc/pam.d ]; then
find ./etc/pam.d -type f -mindepth 1 -maxdepth 1 -print0 |
xargs -r0 subst -p ' xargs -r0 subst -p '
s,^\(#\?\)auth[[:space:]]\+,\1auth ,g s,^\(#\?\)auth[[:space:]]\+,\1auth ,g
s,^\(#\?\)account[[:space:]]\+,\1account ,g s,^\(#\?\)account[[:space:]]\+,\1account ,g
@ -75,12 +81,6 @@ s,\([[:space:]]\)required[[:space:]]\+pam_stack.so[[:space:]]\+service=,\1includ
' -- ' --
fi fi
for d in ./lib ./usr/lib ./usr/X11R6/lib; do
[ -d "$d" ] || continue
find "$d" -type f -mindepth 1 -maxdepth 1 -name 'lib*.la' -print0 |
xargs -r0 rm -fv --
done
# All the rest is perl cleanup stuff. # All the rest is perl cleanup stuff.
cd ./usr/lib/perl5 >/dev/null 2>&1 || exit 0 cd ./usr/lib/perl5 >/dev/null 2>&1 || exit 0