diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-17 19:51:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-17 19:51:13 +0900 |
commit | 447feb0aa08e20cc5eeb8b3a6f881de261a2c9a2 (patch) | |
tree | 90a6f9f9bfbd185e714268629f5a98b226b5711e /autogen.sh | |
parent | f9e43782995b1f77e7b10c79941bbbda15620e2a (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-x | autogen.sh | 8 |
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"} |