dhelp
Hallo,
I changed a few lines in dhelp_parse to solve the
/usr/doc/ -> /usr/share/doc problem:
637,641c636
< if(!strncmp(name, "/usr/doc", 8))
< file_ptr += 8;
< else
< file_ptr += strlen (resolv_docdir);
---
> file_ptr += strlen (resolv_docdir);
makes dhelp_parse work for symlinks to /usr/doc.
then you just have to make
ln -s /usr/doc/* /usr/share/doc
and
find -follow -name .dhelp | sed "s/^\./\/usr\/share\/doc/g" | \
sed "s/\/\.dhelp//g" | xargs -n 1 dhelp_parse -a
later because hdelp_parse -r does not accept the symlinks to /usr/doc
That's not really a clean solution but it works (at least for /usr/doc/)
Additional symlinks for the gifs in /usr/share/doc/dhelp to
/usr/doc/dhelp are required.
MfG Bernhard
--
__ ___
// ) ___--"" "-.
\ |,"( /`--"" `. Bernhard Rieder
\/ o \
( _.-. ,'" ; mail: e9325898@stud2.tuwien.ac.at
|\" /`. \ , / |
| \ ' .'`.; | | \.___________________________
_-'.' | |--..,,,\_ \________---------~~~~~"""""""
'''" _-'.' ___"- )
'''" '''---~""
Reply to: