summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-17 19:51:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-17 19:51:13 +0900
commit447feb0aa08e20cc5eeb8b3a6f881de261a2c9a2 (patch)
tree90a6f9f9bfbd185e714268629f5a98b226b5711e /autogen.sh
parentf9e43782995b1f77e7b10c79941bbbda15620e2a (diff)
Improved autogen.sh
* update in the source directory * make symbolic links instead of copies * forward the arguments to autoreconf as-is
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 7c148da2d2..68f8996a3e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,9 @@
#!/bin/sh
-${AUTORECONF:-autoreconf} --install $*
+PWD=
+case "$0" in
+*/*) srcdir="${0%/*}/";;
+*) srcdir="";;
+esac
+
+exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}