[PATCH] bootstrap: fallback to `cp -pR' if `ln -s' fails

KO Myung-Hun <[email protected]> Thu, 19 Oct 2023 22:58:12 +0900
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <[email protected]>
* bootstrap: Try `cp -pR' if `ln -s' fails.
---
 bootstrap | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bootstrap b/bootstrap
index 46e7662e..38d4a111 100755
--- a/bootstrap
+++ b/bootstrap
@@ -221,7 +221,8 @@ mkdir "$ACBOOTDIR"/bin "$ACBOOTDIR"/lib "$ACBOOTDIR"/tmp
         if [ -n "$verbose" ]; then
             printf '%s: creating %s\n' "$me" "$ACBOOTDIR/lib/$sub"
         fi
-        ln -s ../../lib/$sub .
+        ln -s ../../lib/$sub . || cp -pR ../../lib/$sub .
+
     done
 )
 
-- 
2.42.0