[blam] autogen.sh: avoid sed error "read error on stdin: Is a directory"
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] autogen.sh: avoid sed error "read error on stdin: Is a directory"
- Date: Fri, 14 Jun 2013 09:25:51 +0000 (UTC)
commit 72f2961120875969cf5538b592dba37dddfdf1ac
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Fri Jun 14 09:51:54 2013 +0200
autogen.sh: avoid sed error "read error on stdin: Is a directory"
The following line in autogen.sh was causing an error:
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
"sed: read error on stdin: Is a directory"
This line is supposed to look for occurrences of this macro
in the configure script, however the $coin variable contained
the value ".", not "./configure.in", so the $macrodirs variable
was not being populated. After fixing this, however, the
$macrodirs variable is still empty (because we don't use
AM_ACLOCAL_INCLUDE in 'configure.in') but at least we removed
the red herring caused by the unique real usage of the $coin
variable (it is also used to extract $dr, which is the dirname
of $coin, which maps to "." regardless if $coin is "." or
"./configure.in", so everything keeps working as before).
autogen.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index c9966d9..9fd0ee5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -137,7 +137,7 @@ case $CC in
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
esac
-for coin in .
+for coin in `find $srcdir -name $CONFIGURE -print`
do
dr=`dirname $coin`
if test -f $dr/NO-AUTO-GEN; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]