[PATCH] scripts/entitlement.sh: Use backward-compatible cp flags

Evan Miller posted 1 patch 2 years, 4 months ago
Failed in applying to current master (apply log)
[PATCH] scripts/entitlement.sh: Use backward-compatible cp flags
Posted by Evan Miller 2 years, 4 months ago
Older versions of Mac OS X do not support cp -a. The cp man page indicates that -a is equivalent to -pPR.

Signed-off-by: Evan Miller <emmiller@gmail.com>

--- scripts/entitlement.sh.orig
+++ scripts/entitlement.sh
@@ -15,7 +15,7 @@

 if $in_place; then
   trap 'rm "$DST.tmp"' exit
-  cp -af "$SRC" "$DST.tmp"
+  cp -pPRf "$SRC" "$DST.tmp"
   SRC="$DST.tmp"
 else
   cd "$MESON_INSTALL_DESTDIR_PREFIX"