The unified build may delete installed manual files
The installation of man files and html files alike didn't properly check that file names with different casing could be the same on case-insensitive file systems. This change fixes that. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
@@ -406,7 +406,14 @@ PROCESS_PODS=\
|
|||||||
names=`cat $$p | $(EXTRACT_NAMES)`; \
|
names=`cat $$p | $(EXTRACT_NAMES)`; \
|
||||||
( cd $$top/man$$SEC; \
|
( cd $$top/man$$SEC; \
|
||||||
for n in $$names; do \
|
for n in $$names; do \
|
||||||
if [ "$$n" != "$$fn" ]; then \
|
comp_n="$$n"; \
|
||||||
|
comp_fn="$$fn"; \
|
||||||
|
case "$(PLATFORM)" in DJGPP|Cygwin*|mingw*|darwin*-*-cc) \
|
||||||
|
comp_n=`echo "$$n" | tr [A-Z] [a-z]`; \
|
||||||
|
comp_fn=`echo "$$fn" | tr [A-Z] [a-z]`; \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
|
if [ "$$comp_n" != "$$comp_fn" ]; then \
|
||||||
echo "link $$top/man$$SEC/$$n$$suf -> $$top/man$$SEC/$$fn$$suf"; \
|
echo "link $$top/man$$SEC/$$n$$suf -> $$top/man$$SEC/$$fn$$suf"; \
|
||||||
PLATFORM=$(PLATFORM) $$point $$fn$$suf $$n$$suf; \
|
PLATFORM=$(PLATFORM) $$point $$fn$$suf $$n$$suf; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -429,7 +436,14 @@ UNINSTALL_DOCS=\
|
|||||||
$(RM) $$top/man$$SEC/$$fn$$suf; \
|
$(RM) $$top/man$$SEC/$$fn$$suf; \
|
||||||
names=`cat $$p | $(EXTRACT_NAMES)`; \
|
names=`cat $$p | $(EXTRACT_NAMES)`; \
|
||||||
for n in $$names; do \
|
for n in $$names; do \
|
||||||
if [ "$$n" != "$$fn" ]; then \
|
comp_n="$$n"; \
|
||||||
|
comp_fn="$$fn"; \
|
||||||
|
case "$(PLATFORM)" in DJGPP|Cygwin*|mingw*|darwin*-*-cc) \
|
||||||
|
comp_n=`echo "$$n" | tr [A-Z] [a-z]`; \
|
||||||
|
comp_fn=`echo "$$fn" | tr [A-Z] [a-z]`; \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
|
if [ "$$comp_n" != "$$comp_fn" ]; then \
|
||||||
echo "$(RM) $$top/man$$SEC/$$n$$suf"; \
|
echo "$(RM) $$top/man$$SEC/$$n$$suf"; \
|
||||||
$(RM) $$top/man$$SEC/$$n$$suf; \
|
$(RM) $$top/man$$SEC/$$n$$suf; \
|
||||||
fi; \
|
fi; \
|
||||||
|
Reference in New Issue
Block a user