From d8021633488a52260e374ba77ccd00480a53ba7d Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 20 Feb 2007 10:01:29 -0500 Subject: [PATCH] Use -p with install to preserve timestamps, etc... --- builder/Makefile | 8 ++++---- cli/Makefile | 4 ++-- hub/Makefile | 4 ++-- koji/Makefile | 2 +- util/Makefile | 8 ++++---- www/conf/Makefile | 2 +- www/kojiweb/Makefile | 2 +- www/kojiweb/includes/Makefile | 2 +- www/lib/kojiweb/Makefile | 2 +- www/static/Makefile | 2 +- www/static/errors/Makefile | 2 +- www/static/images/Makefile | 2 +- www/static/js/Makefile | 2 +- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/builder/Makefile b/builder/Makefile index 72275791..d3f281d9 100644 --- a/builder/Makefile +++ b/builder/Makefile @@ -16,13 +16,13 @@ install: fi mkdir -p $(DESTDIR)/usr/sbin - install -m 755 $(BINFILES) $(DESTDIR)/usr/sbin + install -p -m 755 $(BINFILES) $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/etc/mock/koji mkdir -p $(DESTDIR)/etc/rc.d/init.d - install -m 755 kojid.init $(DESTDIR)/etc/rc.d/init.d/kojid + install -p -m 755 kojid.init $(DESTDIR)/etc/rc.d/init.d/kojid mkdir -p $(DESTDIR)/etc/sysconfig - install -m 644 kojid.sysconfig $(DESTDIR)/etc/sysconfig/kojid + install -p -m 644 kojid.sysconfig $(DESTDIR)/etc/sysconfig/kojid - install -m 644 kojid.conf $(DESTDIR)/etc/kojid.conf + install -p -m 644 kojid.conf $(DESTDIR)/etc/kojid.conf diff --git a/cli/Makefile b/cli/Makefile index 7d0c0c9e..72ce3923 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -14,5 +14,5 @@ install: fi mkdir -p $(DESTDIR)/usr/bin - install -m 755 $(FILES) $(DESTDIR)/usr/bin - install -m 644 koji.conf $(DESTDIR)/etc/koji.conf + install -p -m 755 $(FILES) $(DESTDIR)/usr/bin + install -p -m 644 koji.conf $(DESTDIR)/etc/koji.conf diff --git a/hub/Makefile b/hub/Makefile index 3aa773d6..c6f081f9 100644 --- a/hub/Makefile +++ b/hub/Makefile @@ -23,11 +23,11 @@ install: fi mkdir -p $(DESTDIR)/etc/httpd/conf.d - install -m 644 httpd.conf $(DESTDIR)/etc/httpd/conf.d/kojihub.conf + install -p -m 644 httpd.conf $(DESTDIR)/etc/httpd/conf.d/kojihub.conf mkdir -p $(DESTDIR)/$(SERVERDIR) for p in $(PYFILES) ; do \ - install -m 644 $$p $(DESTDIR)/$(SERVERDIR)/$$p; \ + install -p -m 644 $$p $(DESTDIR)/$(SERVERDIR)/$$p; \ done $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(SERVERDIR)', 1, '$(PYDIR)', 1)" diff --git a/koji/Makefile b/koji/Makefile index dc68c9c7..d46a90f6 100644 --- a/koji/Makefile +++ b/koji/Makefile @@ -16,7 +16,7 @@ clean: install: mkdir -p $(DESTDIR)/$(PKGDIR) for p in $(PYFILES) ; do \ - install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \ + install -p -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \ done for p in $(PYSCRIPTS) ; do \ chmod 0755 $(DESTDIR)/$(PKGDIR)/$$p; \ diff --git a/util/Makefile b/util/Makefile index 9a055c1d..dd44d0d7 100644 --- a/util/Makefile +++ b/util/Makefile @@ -13,12 +13,12 @@ install: exit 1; \ fi mkdir -p $(DESTDIR)/usr/sbin - install -m 755 $(BINFILES) $(DESTDIR)/usr/sbin + install -p -m 755 $(BINFILES) $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/etc/rc.d/init.d - install -m 755 kojira.init $(DESTDIR)/etc/rc.d/init.d/kojira + install -p -m 755 kojira.init $(DESTDIR)/etc/rc.d/init.d/kojira mkdir -p $(DESTDIR)/etc/sysconfig - install -m 644 kojira.sysconfig $(DESTDIR)/etc/sysconfig/kojira + install -p -m 644 kojira.sysconfig $(DESTDIR)/etc/sysconfig/kojira - install -m 644 kojira.conf $(DESTDIR)/etc/kojira.conf + install -p -m 644 kojira.conf $(DESTDIR)/etc/kojira.conf diff --git a/www/conf/Makefile b/www/conf/Makefile index 34f34ead..ab7c3bce 100644 --- a/www/conf/Makefile +++ b/www/conf/Makefile @@ -13,4 +13,4 @@ install: fi mkdir -p $(DESTDIR)/etc/httpd/conf.d - install -m 644 kojiweb.conf $(DESTDIR)/etc/httpd/conf.d/kojiweb.conf + install -p -m 644 kojiweb.conf $(DESTDIR)/etc/httpd/conf.d/kojiweb.conf diff --git a/www/kojiweb/Makefile b/www/kojiweb/Makefile index a37f5471..4feda333 100644 --- a/www/kojiweb/Makefile +++ b/www/kojiweb/Makefile @@ -18,7 +18,7 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR)/$(SERVERDIR) \ -C $$d install; [ $$? = 0 ] || exit 1; done diff --git a/www/kojiweb/includes/Makefile b/www/kojiweb/includes/Makefile index d3e15100..ab25127e 100644 --- a/www/kojiweb/includes/Makefile +++ b/www/kojiweb/includes/Makefile @@ -15,4 +15,4 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) diff --git a/www/lib/kojiweb/Makefile b/www/lib/kojiweb/Makefile index 33d3ab5f..0cdcbe9e 100644 --- a/www/lib/kojiweb/Makefile +++ b/www/lib/kojiweb/Makefile @@ -25,6 +25,6 @@ install: mkdir -p $(DESTDIR)/$(SERVERDIR) for p in $(PYFILES) ; do \ - install -m 644 $$p $(DESTDIR)/$(SERVERDIR)/$$p; \ + install -p -m 644 $$p $(DESTDIR)/$(SERVERDIR)/$$p; \ done $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(SERVERDIR)', 1, '$(PYDIR)', 1)" diff --git a/www/static/Makefile b/www/static/Makefile index 7fb8836f..453f8b53 100644 --- a/www/static/Makefile +++ b/www/static/Makefile @@ -18,7 +18,7 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR)/$(SERVERDIR) \ -C $$d install; [ $$? = 0 ] || exit 1; done diff --git a/www/static/errors/Makefile b/www/static/errors/Makefile index fad54932..9da0127d 100644 --- a/www/static/errors/Makefile +++ b/www/static/errors/Makefile @@ -15,4 +15,4 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) diff --git a/www/static/images/Makefile b/www/static/images/Makefile index cb9e3596..77da329d 100644 --- a/www/static/images/Makefile +++ b/www/static/images/Makefile @@ -15,4 +15,4 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) diff --git a/www/static/js/Makefile b/www/static/js/Makefile index 617087e6..5712e4be 100644 --- a/www/static/js/Makefile +++ b/www/static/js/Makefile @@ -16,6 +16,6 @@ install: fi mkdir -p $(DESTDIR)/$(SERVERDIR) - install -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) cp -r jsolait $(DESTDIR)/$(SERVERDIR)