]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/beep/0006-Preserve-file-modification-time-on-install.patch
reiserfsprogs: Update to 3.6.27
[ipfire-2.x.git] / src / patches / beep / 0006-Preserve-file-modification-time-on-install.patch
CommitLineData
4217b4b6
MF
1From 4622dd15dc12dab47a0381a8a7188f0f0421e01d Mon Sep 17 00:00:00 2001
2From: Hans Ulrich Niedermann <hun@n-dimensional.de>
3Date: Wed, 20 Nov 2013 00:00:54 +0100
4Subject: [PATCH] Preserve file modification time on install
5
6Add -p option to install(1) invocation in order to preserve
7the timestamps of the files being installed.
8---
9 Makefile | 8 ++++----
10 1 file changed, 4 insertions(+), 4 deletions(-)
11
12diff --git a/Makefile b/Makefile
13index 942a7a5..290b8a4 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -27,10 +27,10 @@ $(EXEC_NAME): beep.c
17 $(CC) $(FLAGS) $(CFLAGS) -o $(EXEC_NAME) beep.c
18
19 install: all
20- $(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
21- $(INSTALL) -m 0755 $(EXEC_NAME) $(DESTDIR)$(bindir)/
22- $(INSTALL) -m 0755 -d $(DESTDIR)$(man1dir)
23- $(INSTALL) -m 0644 $(MAN_FILE) $(DESTDIR)$(man1dir)/
24+ $(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
25+ $(INSTALL) -m 0755 -p $(EXEC_NAME) $(DESTDIR)$(bindir)/
26+ $(INSTALL) -m 0755 -d $(DESTDIR)$(man1dir)
27+ $(INSTALL) -m 0644 -p $(MAN_FILE) $(DESTDIR)$(man1dir)/
28
29 uninstall:
30 rm -f $(DESTDIR)$(bindir)/$(EXEC_NAME)
31--
322.7.5