From: Vincent Bernat Date: Thu, 10 Jan 2013 22:52:26 +0000 (+0100) Subject: autogen: don't use readlink -f X-Git-Tag: 0.7.1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a8ed660322963882c1d0a797b3b1aeb35d69517;p=thirdparty%2Flldpd.git autogen: don't use readlink -f This is not portable. We are only interested in the basename, let's just use $PWD instead of `.`. --- 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)