Correct the extraction of the .so link target when symlinking manpages

This commit is contained in:
Tom G. Christensen 2006-06-11 09:45:24 +00:00
parent 584d7de232
commit b28cc5d0eb

View File

@ -444,7 +444,7 @@ symlink_man()
do
solink="$($HEAD -1 $manpage)"
if [ "${solink:0:3}" = ".so" ]; then # .so style link to be converted
linkdest="${solink/#.so /}"
linkdest="${solink#.so*/}"
[ "$symlinkman_verbose" -eq 1 ] && echo "Symlinking $linkdest->$manpage"
$LN -sf "$linkdest" "$manpage"
fi