autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: KO Myung-Hun
Subject: [PATCH] bootstrap: fallback to `cp -pR' if `ln -s' fails
Date: Thu, 19 Oct 2023 22:58:12 +0900

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]