Fixing manual pages installation - recent 'install' version ignoring '-c' option; use another command line.
Closed this issue · 1 comments
svalx commented
-c dir Conditional copy option of install Ignored in GNU Coreutils install; it left for compatibility with old Unix versions of install.
Index: mt-st-1.2/Makefile
===================================================================
--- mt-st-1.2.orig/Makefile
+++ mt-st-1.2/Makefile
@@ -39,11 +39,11 @@ version.h: Makefile
install: $(PROGS)
install -d $(MTDIR) $(MANDIR) $(STINITDIR)
install -s mt $(MTDIR)
- install -c -m 444 mt.1 $(MANDIR)/man1
+ install -D -m 444 mt.1 $(MANDIR)/man1/mt.1
(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
install -s stinit $(STINITDIR)
- install -c -m 444 stinit.8 $(MANDIR)/man8
+ install -D -m 444 stinit.8 $(MANDIR)/man8/stinit.8
(if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)