]> arthur.barton.de Git - bup.git/commitdiff
Preserve filesystem timestamps during "make install".
authorChristopher Meng <cickumqt@gmail.com>
Sun, 25 Aug 2013 14:32:27 +0000 (10:32 -0400)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Sep 2013 18:12:26 +0000 (13:12 -0500)
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 <cickumqt@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Tested-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Makefile

index 97e2b722fa09bb32eca7988a93bca3227256c294..d8686ffff74b7d21db68cbb720eb52f87c71a65e 100644 (file)
--- 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: