]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
autogen: don't use readlink -f
authorVincent Bernat <bernat@luffy.cx>
Thu, 10 Jan 2013 22:52:26 +0000 (23:52 +0100)
committerVincent Bernat <bernat@luffy.cx>
Thu, 10 Jan 2013 22:52:26 +0000 (23:52 +0100)
This is not portable. We are only interested in the basename, let's
just use $PWD instead of `.`.

autogen.sh

index 2a2326fe52aec340869b9c92a394fecbcc883843..85f2cef14c8e3abbb51ae45e2ee260f65763b1a5 100755 (executable)
@@ -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)