2005-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree
+ reorganization.
+ * tests/sh.test: Adjust. Also barf on sed diagnostics so this
+ test will not fail again silently.
+
* libltdl/m4/ltdl.m4 (LT_SYS_SYMBOL_USCORE): Use _LT_EOF, not
EOF.
# Shared global variables for test scripts
prefix="./_inst"
srcdir=`cd $srcdir && pwd`
-scripts="$srcdir/config/ltmain.sh ./libtoolize"
+m4dir=$srcdir/libltdl/m4
+auxdir=$srcdir/libltdl/config
+scripts="$auxdir/ltmain.sh ./libtoolize"
func_msg "Running $progname"
done
# Check for opening brace on next line in shell function definition.
+# redirect stderr so we also barf when sed issues diagnostics.
for s in $scripts
do
- if $SED -n '/^func_/{N;/^func_[^ ]* ()\n{$/d;p;}' "$s" |
+ if $SED -n '/^func_/{N;/^func_[^ ]* ()\n{$/d;p;}' "$s" 2>&1 |
$EGREP .; then
echo "Function definitions should look like this in $s:
func_foo ()
fi
done
-for s in "$srcdir/m4/libtool.m4"
+# Check for correct usage of $cc_basename.
+# redirect stderr so we also barf when sed issues diagnostics.
+for s in "$m4dir/libtool.m4"
do
if $SED -n '/case \$cc_basename in/,/esac/ {
/^[ ]*[a-zA-Z][a-zA-Z0-9+]*[^*][ ]*)/p
- };' $s | $EGREP .; then
+ };' $s 2>&1 | $EGREP .; then
echo "\$cc_basename matches should include a trailing \`*' in $s."
status=$EXIT_FAILURE
fi