Le jeu 17/07/2003 à 14:22, Jon Griffiths a écrit :
Hi,
I've never had any luck with the default make rules for the html books. I'm running (more or less) Mandrake 8, and it seems that db2html from that distribution doesn't respect the current directory when computing relative paths, so it always fails to find the .dsl file and bombs. The following patch fixes this for me, and hopefully should work for everyone else too.
Yea, I know. You're not the only one.
- $(DB2HTML) -d $(SRCDIR)/default.dsl -o $* $<
- $(DB2HTML) -d `pwd $(SRCDIR)`/default.dsl $<
Why do you keep $(SRCDIR) after pwd? man bash and man pwd both say nothing about giving pwd a path...
What's really needed is either use our own db2html (but that was struck down already in the past), or test in configure the behaviour of the system's db2html and act accordingly.
Also, ideally there'd be only one standard for db2htmls...
Vincent
Hiya,
Why do you keep $(SRCDIR) after pwd? man bash and man pwd both say nothing about giving pwd a path...
you're right, theres no need for it, it just gets swallowed by the backticks so i didn't notice.
What's really needed is either use our own db2html (but that was struck down already in the past), or test in configure the behaviour of the system's db2html and act accordingly.
All we need is the full path in the argument to -d, rather than the relative path we get at the moment; I believe this will work with all versions of db2html.
Also, ideally there'd be only one standard for db2htmls...
Yup, sadly, its too late for that. I think this is a bug in earlier db2htmls where it 'forgets' that it has decended into a directory to make the html and should adjust any relative dir paths accordingly. Later versions (correctly) fix the bug, so its more of a backwards compatability issue than having to support a bunch of truly incompatable versions, AFAICS.
Cheers, Jon
===== "Don't wait for the seas to part, or messiahs to come; Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
Jon Griffiths jon_p_griffiths@yahoo.com writes:
Yup, sadly, its too late for that. I think this is a bug in earlier db2htmls where it 'forgets' that it has decended into a directory to make the html and should adjust any relative dir paths accordingly. Later versions (correctly) fix the bug, so its more of a backwards compatability issue than having to support a bunch of truly incompatable versions, AFAICS.
There's no reason to worry about being compatible with broken versions of the script; very few people need to generate the documentation, and these people can upgrade to a properly working script.