"Fossies" - the Fresh Open Source Software Archive

Member "ipfire-2.x-2.27-core174/src/patches/beep/0006-Preserve-file-modification-time-on-install.patch" (7 Apr 2023, 1121 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From 4622dd15dc12dab47a0381a8a7188f0f0421e01d Mon Sep 17 00:00:00 2001
    2 From: Hans Ulrich Niedermann <hun@n-dimensional.de>
    3 Date: Wed, 20 Nov 2013 00:00:54 +0100
    4 Subject: [PATCH] Preserve file modification time on install
    5 
    6 Add -p option to install(1) invocation in order to preserve
    7 the timestamps of the files being installed.
    8 ---
    9  Makefile | 8 ++++----
   10  1 file changed, 4 insertions(+), 4 deletions(-)
   11 
   12 diff --git a/Makefile b/Makefile
   13 index 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 -- 
   32 2.7.5