$OpenBSD: patch-build_tibs_host_posix_mak,v 1.1 2010/09/16 10:05:20 sthen Exp $ --- build/tibs/host/posix.mak.orig Mon Mar 22 20:32:47 2010 +++ build/tibs/host/posix.mak Wed Apr 7 03:59:08 2010 @@ -5,12 +5,12 @@ SHELL := /bin/sh # $1 - file, $2 - target dir, $3 - mode define SINGLE.INSTALL if [ ! -d $2 ]; then install -m 0755 -d $2; fi - if [ -L $1 ]; then cp -d $1 $(patsubst %/,%,$2)/$(notdir $1); else install -m $3 $1 $(patsubst %/,%,$2)/$(notdir $1); fi + if [ -L $1 ]; then cp -RP $1 $(patsubst %/,%,$2)/$(notdir $1); else install -m $3 $1 $(patsubst %/,%,$2)/$(notdir $1); fi endef # $1 - directory, $2 - target dir, $3 - mode for files define SINGLE.INSTALLDIR if [ ! -d $2 ]; then install -m 0755 -d $2; fi - cp -drP $1* $2 + cp -RP $1* $2 find $2 -type f -print0 | xargs -0 chmod $3 endef