diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-06 17:53:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 17:53:37 +0900 |
commit | 5ce3272e513e0dafedcc40f121e2d71bef3a3688 (patch) | |
tree | 6d1e4ed28d85fccaf58ffdda519fb87c20ba067a | |
parent | 9c0c66f721d707bec88b1690fa12d5b231ae2314 (diff) |
autogen.sh: Copy auxiliary files instead of symlinks with `-i`
When accessing from containers, symbolic links may not be able to
reach outer file systems.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5220
Merged-By: nobu <nobu@ruby-lang.org>
-rwxr-xr-x | autogen.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 44a1922cb0..f8cdf3c0c1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,4 +6,12 @@ case "$0" in *) srcdir="";; esac -exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"} +symlink='--install --symlink' +case " $* " in + *" -i "*|*" --install "*) + # reset to copy missing standard auxiliary files, instead of symlinks + symlink= + ;; +esac + +exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"} |