shutils/metadata.sh: use find(1) -follow.

--HG--
extra : convert_revision : 1815c225aab07ca970d14f1340439d67fee2d88a
This commit is contained in:
Juan RP 2010-04-21 15:29:23 +02:00
parent 5d9675e435
commit b0c64c181b

View file

@ -126,9 +126,8 @@ xbps_write_metadata_pkg_real()
# Add info-files trigger.
triggers="info-files $triggers"
for f in $(find ${DESTDIR}/usr/share/info -type f); do
rlink=$(readlink -f $f)
j=$(echo $rlink|sed -e "$fpattern")
for f in $(find ${DESTDIR}/usr/share/info -type f -follow); do
j=$(echo $f|sed -e "$fpattern")
[ "$j" = "" ] && continue
[ "$j" = "/usr/share/info/dir" ] && continue
# Ignore compressed files.
@ -159,9 +158,8 @@ xbps_write_metadata_pkg_real()
# compress all them with gzip.
#
if [ -d "${DESTDIR}/usr/share/man" ]; then
for f in $(find ${DESTDIR}/usr/share/man -type f); do
rlink=$(readlink -f $f)
j=$(echo $rlink|sed -e "$fpattern")
for f in $(find ${DESTDIR}/usr/share/man -type f -follow); do
j=$(echo $f|sed -e "$fpattern")
[ "$j" = "" ] && continue
if $(echo $j|grep -q '.*.gz$'); then
continue