From a66a577977d5747ef4fcb73b1d139b77a79db80e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 02 Aug 2012 22:41:39 -0400 Subject: Portably install, set better file modes. The install utility is not required by POSIX, and it's easily replaced by mkdir, cp, and chmod. Libraries, locales, and manual pages should not be executable. --- diff --git a/configure b/configure index b960b09..f558c2f 100755 --- a/configure +++ b/configure @@ -35,7 +35,6 @@ localedir='$(datadir)/locale' quiet=false missing_deps=false dep_cmds=' -install sh ' diff --git a/lib/Makefile.in b/lib/Makefile.in index 1f40840..d790456 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -62,7 +62,9 @@ clean: install: all @for obj in $(OBJS); do \ printf ' INSTALL lib/%s\n' "$${obj}"; \ - $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(libdir)/$${obj}"; \ + mkdir -p '$(DESTDIR)/$(libdir)'; \ + cp "$${obj}" "$(DESTDIR)/$(libdir)/$${obj}"; \ + chmod 644 "$(DESTDIR)/$(libdir)/$${obj}"; \ done uninstall: diff --git a/locale/Makefile.in b/locale/Makefile.in index bf16dae..1e08b0d 100644 --- a/locale/Makefile.in +++ b/locale/Makefile.in @@ -51,7 +51,9 @@ clean: install: all @for obj in $(OBJS); do \ printf ' INSTALL locale/%s\n' "$${obj}"; \ - $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(localedir)/$${obj}"; \ + mkdir -p '$(DESTDIR)/$(localedir)'; \ + cp "$${obj}" "$(DESTDIR)/$(localedir)/$${obj}"; \ + chmod 644 "$(DESTDIR)/$(localedir)/$${obj}"; \ done uninstall: diff --git a/man/Makefile.in b/man/Makefile.in index 25a3882..387a599 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -73,7 +73,9 @@ clean: install: all @for obj in $(OBJS); do \ printf ' INSTALL man/%s\n' "$${obj}"; \ - $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \ + mkdir -p '$(DESTDIR)/$(mandir)/man$${obj##*.}'; \ + cp "$${obj}" "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \ + chmod 644 "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \ done uninstall: diff --git a/src/Makefile.in b/src/Makefile.in index 22c115c..7740e13 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -63,7 +63,9 @@ clean: install: all @for obj in $(OBJS); do \ printf ' INSTALL src/%s\n' "$${obj}"; \ - $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(bindir)/$${obj}"; \ + mkdir -p '$(DESTDIR)/$(bindir)'; \ + cp "$${obj}" "$(DESTDIR)/$(bindir)/$${obj}"; \ + chmod 755 "$(DESTDIR)/$(bindir)/$${obj}"; \ done uninstall: -- cgit v0.9.1