xbps-src: another way to get the target of symlinks.
This commit is contained in:
parent
d34cb6e0cd
commit
205d066e7c
|
@ -191,7 +191,8 @@ _EOF
|
|||
echo "<key>target</key>" >> $TMPFPLIST
|
||||
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
|
||||
if [ -z "$lnk" -o "$lnk" = "" ]; then
|
||||
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
|
||||
rellnk=$(readlink "$f")
|
||||
lnk=$(readlink -f $(dirname $f)/$rellnk|sed -e "s|${DESTDIR}||")
|
||||
fi
|
||||
echo "<string>$lnk</string>" >> $TMPFPLIST
|
||||
echo "</dict>" >> $TMPFPLIST
|
||||
|
|
Loading…
Reference in New Issue