Lines 64-72
Link Here
|
64 |
else |
64 |
else |
65 |
pushd "${x%/*}" >/dev/null |
65 |
pushd "${x%/*}" >/dev/null |
66 |
fi |
66 |
fi |
67 |
find "${x##*/}" -type d -exec dodir "${INSDESTTREE}/{}" \; |
67 |
x=${x##*/} |
68 |
find "${x##*/}" \( -type f -or -type l \) -print0 | _xdoins |
68 |
# Follow any symlinks recursively until we've got |
69 |
popd >/dev/null |
69 |
# a normal directory for 'find' to traverse. |
|
|
70 |
while [ -L "$x" ] ; do |
71 |
pushd "$(readlink "$x")" >/dev/null |
72 |
x=${PWD##*/} |
73 |
pushd "${PWD%/*}" >/dev/null |
74 |
done |
75 |
find "$x" -type d -exec dodir "${INSDESTTREE}/{}" \; |
76 |
find "$x" \( -type f -or -type l \) -print0 | _xdoins |
77 |
while popd >/dev/null 2>&1 ; do true ; done |
70 |
((++success)) |
78 |
((++success)) |
71 |
else |
79 |
else |
72 |
_doins "${x}" && ((++success)) |
80 |
_doins "${x}" && ((++success)) |