1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2021-12-06 17:53:37 +09:00 committed by GitHub
parent 9c0c66f721
commit 5ce3272e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-12-06 17:53:59 +09:00
Merged: https://github.com/ruby/ruby/pull/5220

Merged-By: nobu <nobu@ruby-lang.org>

View file

@ -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"}