#4452 closed defect (fixed)
update symlinks after compressdoc
Reported by: | symnem | Owned by: | Igor Živković |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
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
Change History (6)
comment:1 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 11 years ago
comment:3 by , 11 years ago
Looking at the script itself, there are comments about how much space is saved by compressing man pages. It comes out to about 20 Mb. Is this significant on today's systems where disk space costs about 1 USD (or less) per Gb?
Perhaps we should consider removing the compressdoc section completely.
comment:4 by , 11 years ago
Well, I certainly don't use it so I'm all for archiving it if there are no objections.
Note:
See TracTickets
for help on using tickets.
I've just run compressdoc script (I didn't use it so far on my systems) and I don't see any broken links in the /usr/share/man directory. Could you paste which ones are broken on your LFS?