mirror of https://github.com/mkerrisk/man-pages
Makefile: Fix html target bug
Switching into the man? subdirectories when running man2html(1) caused a bug where ".so dir/page.n" links were misinterpreted (because the directory prefix was interpreted with respect to the current directory)i, and consequently, the link files were not correctly rendered. There's no need to switch into the subdirectories. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
106843a6b7
commit
86e7d29168
2
Makefile
2
Makefile
|
@ -17,7 +17,7 @@ html:
|
||||||
for i in man?; do \
|
for i in man?; do \
|
||||||
[ -d $(HTDIR)/"$$i" ] || mkdir -p $(HTDIR)/"$$i"; \
|
[ -d $(HTDIR)/"$$i" ] || mkdir -p $(HTDIR)/"$$i"; \
|
||||||
find "$$i/" -type f | while read f; do \
|
find "$$i/" -type f | while read f; do \
|
||||||
(cd "$$i"; man2html $(HTOPTS) `basename $$f`) | \
|
man2html $(HTOPTS) $$f | \
|
||||||
sed -e '1,2d' > $(HTDIR)/"$$i"/`basename $$f`.html; \
|
sed -e '1,2d' > $(HTDIR)/"$$i"/`basename $$f`.html; \
|
||||||
done; \
|
done; \
|
||||||
done; fi
|
done; fi
|
||||||
|
|
Loading…
Reference in New Issue