iustin / mt-st

Magnetic tape control tools for Linux SCSI tapes
Other
41 stars 12 forks source link

Fixing manual pages installation - recent 'install' version ignoring '-c' option; use another command line. #4

Closed svalx closed 8 years ago

svalx commented 8 years ago

-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)
iustin commented 8 years ago

I just fixed this by install dirs patch (bf35203), thanks for the report.