xbps-src: workaround link target creation metadata.

busybox readlink -f doesn't output the target file if it doesn't exist,
where coreutils one does... simply use readlink without -f for now.
This commit is contained in:
Juan RP 2011-07-31 09:38:10 +02:00
parent b98da7d361
commit e4e0d9a825

View file

@ -192,8 +192,7 @@ _EOF
echo "<key>target</key>" >> $TMPFPLIST
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
if [ -z "$lnk" -o "$lnk" = "" ]; then
rellnk=$(readlink "$f")
lnk=$(readlink -f $(dirname $f)/$rellnk|sed -e "s|${DESTDIR}||")
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
fi
echo "<string>$lnk</string>" >> $TMPFPLIST
echo "</dict>" >> $TMPFPLIST