#4452: update symlinks after compressdoc
--------------------+-------------------------
Reporter: symnem | Owner: blfs-book@…
Type: defect | Status: new
Priority: normal | Milestone: current
Component: BOOK | Version: SVN
Severity: normal | Keywords:
--------------------+-------------------------
compressdoc leaves dangling symlinks (LOTS of them) when it's run after
building LFS.
this script solves them (ad hoc).
hopefully you can find a more elegant solution.
{{{
cat > /tmp/updlink <<"."
#!/bin/bash
dir=`dirname $1`
base=`basename $1`
tgt=`readlink $1`
if [ -e "$dir/$tgt.gz" ]; then
rm -f $1
ln -s "$tgt.gz" "$1.gz"
elif [ -e "$dir/$tgt.bz2" ]; then
rm -f $1
ln -s "$tgt.bz2" "$1.bz2"
fi
.
chmod 755 /tmp/updlink
cd /usr/share/man
find -L . -type l -print0|xargs -0l /tmp/updlink
}}}
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4452>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page