From: Christopher Meng Date: Sun, 25 Aug 2013 14:32:27 +0000 (-0400) Subject: Preserve filesystem timestamps during "make install". X-Git-Tag: 0.25-rc3~18 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=eb9fbf244edddf5f7d380e2f0844782807bd935b Preserve filesystem timestamps during "make install". A good idea regardless, and recommended by the Fedora and Debian packaging guidelines. From debian-policy: The rationale is that there is some information conveyed by knowing the age of the file, for example, you could recognize that some documentation is very old by looking at the modification time, so it would be nice if the modification time of the upstream source would be preserved. It should also help prevent unnecessary backup churn after upgrades. Signed-off-by: Christopher Meng Reviewed-by: Zoran Zaric Tested-by: Zoran Zaric [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning --- diff --git a/Makefile b/Makefile index 97e2b72..d8686ff 100644 --- a/Makefile +++ b/Makefile @@ -34,23 +34,23 @@ install: all $(INSTALL) -m 0644 \ Documentation/*.html \ $(DOCDIR) - $(INSTALL) -m 0755 bup $(BINDIR) - $(INSTALL) -m 0755 \ + $(INSTALL) -pm 0755 bup $(BINDIR) + $(INSTALL) -pm 0755 \ cmd/bup-* \ $(LIBDIR)/cmd - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/bup/*.py \ $(LIBDIR)/bup - $(INSTALL) -m 0755 \ + $(INSTALL) -pm 0755 \ lib/bup/*$(SOEXT) \ $(LIBDIR)/bup - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/tornado/*.py \ $(LIBDIR)/tornado - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/web/static/* \ $(LIBDIR)/web/static/ - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/web/*.html \ $(LIBDIR)/web/ %/all: