autoconf-patches
[Top][All Lists]
Advanced

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

[PATCH] bootstrap: allow `ln -s' to be overriden by the user


From: KO Myung-Hun
Subject: [PATCH] bootstrap: allow `ln -s' to be overriden by the user
Date: Sat, 22 Jun 2024 17:45:59 +0900

* bootstrap: Use $LN_S instead of `ln -s'.
---
 bootstrap | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bootstrap b/bootstrap
index 2b17d7dd..016ba5a1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -92,6 +92,10 @@ done
 : ${PERL=perl}
 export ACLOCAL AUTOMAKE M4 PERL
 
+# Allow `ln -s' to be overridden by the user.
+: ${LN_S="ln -s"}
+export LN_S
+
 # $PERL needs to be an absolute path because we're going to substitute it
 # into #! lines.
 set fnord $PERL
@@ -221,7 +225,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 .
+
     done
 )
 
-- 
2.42.0




reply via email to

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