From c553db0a799e2f3f27a969643abfa25c6de071da Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Fri, 22 Apr 2005 16:55:10 +0200 Subject: [PATCH] correctly handle changing to relative directories in recursive operation --- autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 326462f..ce69c28 100755 --- a/autogen.sh +++ b/autogen.sh @@ -19,7 +19,7 @@ debug="false" recursive="false" dryrun="false" self="$(basename "$0")" -autogen_version="0.4.1" +autogen_version="0.4.2" ######################################################################## @@ -118,7 +118,7 @@ init_vars() { # OK, the "init" part is done recursively by autopoint, so that is easy. # But the cleaning should also work recursively, but that is difficult # with the current structure of the script. - AG_SUBDIRS="$(for k in $(sed -n 's/^[[:space:]]*AC_CONFIG_SUBDIRS(\[\{0,1\}\([^])]*\).*/\1/p' "$CONFIGURE_AC"); do echo "${dir}/${k}"; done)" + AG_SUBDIRS="$(for k in $(sed -n 's/^[[:space:]]*AC_CONFIG_SUBDIRS(\[\{0,1\}\([^])]*\).*/\1/p' "$CONFIGURE_AC"); do echo "${k}"; done)" AG_LIBLTDL_DIR="$(sed -n 's/^[[:space:]]*AC_LIBLTDL_\(INSTALLABLE\|CONVENIENCE\)(\[\{0,1\}\([^])]*\).*/\2/p' < "$CONFIGURE_AC")" if test "x$AG_LIBLTDL_DIR" = "x"; then tmp="$(sed -n 's/^[[:space:]]*\(AC_LIBLTDL_\)\(INSTALLABLE\|CONVENIENCE\)(\[\{0,1\}\([^])]*\).*/\1/p' < "$CONFIGURE_AC")" -- 2.7.4