﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4452	update symlinks after compressdoc	symnem	Igor Živković	"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 
}}}"	defect	closed	normal		BOOK	SVN	medium	fixed		
