"-a" option for cp(1) is not portable, use standard combination "-RpP" instead.

PR pkg/49475 by Sevan Janiyan.
This commit is contained in:
obache 2014-12-17 06:08:13 +00:00
parent 006c9c2034
commit 2c5f7dbe81
2 changed files with 12 additions and 8 deletions

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.1 2014/08/09 23:49:53 wiz Exp $
$NetBSD: distinfo,v 1.2 2014/12/17 06:08:13 obache Exp $
SHA1 (commit-patch-2.5.tar.gz) = 9d41c31adaa6f8a70296b8105736661bba7ef55e
RMD160 (commit-patch-2.5.tar.gz) = ac1193b785bd6bc271254e192ced869967bc87db
Size (commit-patch-2.5.tar.gz) = 20200 bytes
SHA1 (patch-Makefile) = 6b0a4f274f325e186465398dfa35e43ca305f7cd
SHA1 (patch-Makefile) = d8e0b5dd2b71ab6d59c57a3ad628265a3f2b67d7

View file

@ -1,6 +1,7 @@
$NetBSD: patch-Makefile,v 1.1 2014/08/09 23:49:53 wiz Exp $
$NetBSD: patch-Makefile,v 1.2 2014/12/17 06:08:13 obache Exp $
Fix man page installation path.
* Fix man page installation path.
* `-a' option for cp(1) is not portable.
--- Makefile.orig 2013-05-16 02:28:56.000000000 +0000
+++ Makefile
@ -12,8 +13,11 @@ Fix man page installation path.
+ mkdir -p "$(PREFIX)/${PKGMANDIR}/man1"
mkdir -p "$(PREFIX)/share/emacs/site-lisp"
mkdir -p "$(PREFIX)/share/doc/commit-patch"
cp -a $(BIN) "$(PREFIX)/bin"
- cp -a $(BIN) "$(PREFIX)/bin"
- cp -a $(MAN) "$(PREFIX)/share/man/man1"
+ cp -a $(MAN) "$(PREFIX)/${PKGMANDIR}/man1"
cp -a $(ELISP) "$(PREFIX)/share/emacs/site-lisp"
cp -a $(DOC) "$(PREFIX)/share/doc/commit-patch"
- cp -a $(ELISP) "$(PREFIX)/share/emacs/site-lisp"
- cp -a $(DOC) "$(PREFIX)/share/doc/commit-patch"
+ cp -RpP $(BIN) "$(PREFIX)/bin"
+ cp -RpP $(MAN) "$(PREFIX)/${PKGMANDIR}/man1"
+ cp -RpP $(ELISP) "$(PREFIX)/share/emacs/site-lisp"
+ cp -RpP $(DOC) "$(PREFIX)/share/doc/commit-patch"