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

Improved autogen.sh

* update in the source directory
* make symbolic links instead of copies
* forward the arguments to autoreconf as-is
This commit is contained in:
Nobuyoshi Nakada 2021-03-17 19:51:13 +09:00
parent f9e4378299
commit 447feb0aa0
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1,3 +1,9 @@
#!/bin/sh
${AUTORECONF:-autoreconf} --install $*
PWD=
case "$0" in
*/*) srcdir="${0%/*}/";;
*) srcdir="";;
esac
exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}