[dpkg] 21/187: build: Use cp with -R instead of -r

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit 89c630f72bdce926c544b9564f364f55ded60413
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Oct 9 20:34:27 2016 +0200

    build: Use cp with -R instead of -r
    
    The former is more portable and has not been marked as deprecated by
    POSIX.
---
 debian/changelog | 2 ++
 man/Makefile.am  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index dccd461..cf748f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,8 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
       only if available.
     - Check for the required minimal perl version.
     - Use builddir instead of CURDIR in man Makefile.am.
+    - Use cp with -R instead of -r (the former is more portable and not
+      marked as deprecated by POSIX).
 
   [ Updated manpages translations ]
   * German (Helge Kreutzmann).
diff --git a/man/Makefile.am b/man/Makefile.am
index 3309a26..a07dd53 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -147,5 +147,5 @@ dist-hook: man.stamp
 	  cp $(srcdir)/po/$$lang.po $(distdir)/po; \
 	  cp $(srcdir)/po/$$lang.add $(distdir)/po; \
 	  $(MKDIR_P) $(distdir)/$$lang; \
-	  cp -r $(srcdir)/$$lang $(distdir)/; \
+	  cp -R $(srcdir)/$$lang $(distdir)/; \
 	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list