From 37393ac8319ebf89531cf9e9fec94e7f044ff318 Mon Sep 17 00:00:00 2001 From: johnwarburton Date: Fri, 6 Mar 2015 10:44:30 +1100 Subject: [PATCH] Solaris cp dereferences links by default Solaris cp dereferences links by default, whereas Linux does not. This change brings both OS to same behaviour Tested on Solaris 10 & RHEL 6 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8bbdd16b..e5c98fa7 100755 --- a/install.sh +++ b/install.sh @@ -29,8 +29,8 @@ fi BATS_ROOT="$(abs_dirname "$0")" mkdir -p "$PREFIX"/{bin,libexec,share/man/man{1,7}} -cp -R "$BATS_ROOT"/bin/* "$PREFIX"/bin -cp -R "$BATS_ROOT"/libexec/* "$PREFIX"/libexec +cp -PR "$BATS_ROOT"/bin/* "$PREFIX"/bin +cp -PR "$BATS_ROOT"/libexec/* "$PREFIX"/libexec cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/share/man/man1 cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/share/man/man7