From 6a8ed660322963882c1d0a797b3b1aeb35d69517 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 10 Jan 2013 23:52:26 +0100 Subject: [PATCH] autogen: don't use readlink -f This is not portable. We are only interested in the basename, let's just use $PWD instead of `.`. --- autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 2a2326fe..85f2cef1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -20,10 +20,10 @@ ${LIBTOOLIZE} --copy --force echo "autogen.sh: reconfigure with autoreconf" ${AUTORECONF} -vif -I m4 || { echo "autogen.sh: autoreconf has failed ($?), let's do it manually" - for dir in . *; do + for dir in $PWD *; do [ -d "$dir" ] || continue [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue - echo "autogen.sh: configure `basename \`readlink -f $dir\``" + echo "autogen.sh: configure `basename $dir`" (cd "$dir" && ${ACLOCAL} -I m4) (cd "$dir" && ${LIBTOOLIZE} --automake --copy --force) (cd "$dir" && ${ACLOCAL} -I m4) -- 2.39.5