shutils/metadata.sh: use find(1) -follow.
--HG-- extra : convert_revision : 1815c225aab07ca970d14f1340439d67fee2d88a
This commit is contained in:
parent
5d9675e435
commit
b0c64c181b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue