Subject: Re: how do Linux cp(1) options translate to NetBSD's cp options?
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 11/18/2004 02:28:24
Henry Nelson <netb@yuba.kcn.ne.jp> wrote:
> I'm trying to install a program whose Makefile has:
> "test -d ${DESTDIR}${LIBSODIR} && cp -pd ${INSTLIBSO} ${DESTDIR}$
> {LIBSODIR} ;
>                                       ^^
> cp complains that it has no "d" option.
...
> Anyone know what the NetBSD equivalent to `cp -pd` is?  I've read the
> man page but don't understand what the differences are between the two
> cp's.

The Makefile in question is using a nonstandard option.  :-(  NetBSD's has
no equivalent that I see.  

You might try pax(1).  Lots of packages rely on freely available scripts
like mkinstalldirs and install-sh.

HTH.

--jkl