mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
22 lines
569 B
Bash
Executable file
22 lines
569 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Clear PWD to force commands to recompute working directory
|
|
PWD=
|
|
|
|
# Figure out the source directory for this script
|
|
# configure.ac should be in the same place
|
|
case "$0" in
|
|
*/* ) srcdir=`dirname "$0"` ;; # Called with path
|
|
* ) srcdir="";; # Otherwise
|
|
esac
|
|
|
|
# If install-only is explicitly requested, disbale symlink flags
|
|
case " $* " in
|
|
*" -i "* | *" --install"* ) symlink_flags="" ;;
|
|
* ) symlink_flags="--install --symlink" ;;
|
|
esac
|
|
|
|
exec ${AUTORECONF:-autoreconf} \
|
|
$symlink_flags \
|
|
"$@" \
|
|
$srcdir
|