Clean the symlinks finding part

This commit is contained in:
Alexander Sosedkin 2019-03-18 10:20:35 +07:00
parent 802fcfe47f
commit 3eb5b0b8f8

7
script
View file

@ -267,9 +267,10 @@ find bootstrap -executable -type f | \
> bootstrap/EXECUTABLES.txt
echo "finding symlinks..."
for LINK in $(find bootstrap -type l); do
LNK=$(echo "$LINK" | sed s@^bootstrap/@@)
TGT=$(readlink $LINK)
find bootstrap -type l |
while read -r LINK; do
LNK=${LINK#bootstrap/}
TGT=$(readlink "$LINK")
echo "$TGT←$LNK" >> bootstrap/SYMLINKS.txt
rm "$LINK"
done