summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-13 13:52:24 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-13 15:12:24 +0100
commit3af104f3ccdb3ec3d1dec056ff71ccc2bb000e56 (patch)
tree3c78a09422fa500c1e3622f76ea671620a560da0 /Configurations
parent21c6c50fc85a2b6ad8472dcf24f42f5e6da5bfbe (diff)
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>
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/unix-Makefile.tmpl18
1 files changed, 16 insertions, 2 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index d416c21495..e09d060ef7 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -406,7 +406,14 @@ PROCESS_PODS=\
names=`cat $$p | $(EXTRACT_NAMES)`; \
( cd $$top/man$$SEC; \
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"; \
PLATFORM=$(PLATFORM) $$point $$fn$$suf $$n$$suf; \
fi; \
@@ -429,7 +436,14 @@ UNINSTALL_DOCS=\
$(RM) $$top/man$$SEC/$$fn$$suf; \
names=`cat $$p | $(EXTRACT_NAMES)`; \
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"; \
$(RM) $$top/man$$SEC/$$n$$suf; \
fi; \