From: KO Myung-Hun Date: Sun, 23 Jun 2024 17:39:16 +0000 (-0400) Subject: bootstrap: Allow 'ln -s' to be overridden by the user. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cdd728122943b0267e867af25a3a01c62891f85;p=thirdparty%2Fautoconf.git bootstrap: Allow 'ln -s' to be overridden by the user. For example, one might set LN_S=cp when working on an OS or filesystem that does not support symbolic links. * bootstrap: Honor $LN_S environment variable, defaulting to 'ln -s'. --- diff --git a/bootstrap b/bootstrap index 2b17d7dde..b2da1a0c8 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,7 @@ 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 )