]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix srcdir computation for manual runs of old tests.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 19 Jun 2010 15:06:33 +0000 (17:06 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 19 Jun 2010 15:06:33 +0000 (17:06 +0200)
* tests/defs.m4sh: Strip trailing `/tests' from srcdir, to allow
`$srcdir/tests/FOO.test' to be run from the top build directory.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/defs.m4sh

index a6472798fa6dc616be87abe9a8514accc560038b..ae3790698c4f2b642947517c5fd8fca452891e88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Fix srcdir computation for manual runs of old tests.
+       * tests/defs.m4sh: Strip trailing `/tests' from srcdir, to allow
+       `$srcdir/tests/FOO.test' to be run from the top build directory.
+
        Clean up @var handling in the manual.
        * doc/libtool.texi: Throughout the manual, replace @var with
        @samp or @code as appropriate, ensure the argument of remaining
index 58296da020ebdd92e94c7b4dc595307f25d829cd..12305555e29567484fbff46ca0d57c0101818baa 100644 (file)
@@ -2,7 +2,7 @@ AS_INIT[]m4_divert_push([HEADER-COPYRIGHT])dnl
 # @configure_input@
 # defs -- Defines for Libtool testing environment.
 #
-#   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Free Software
+#   Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software
 #   Foundation, Inc.
 #   Written by Gord Matzigkeit, 1996
 #   Rewritten by Gary V. Vaughan, 2003
@@ -59,7 +59,7 @@ DEBUG | debug )
 esac
 
 if test -z "$srcdir"; then
-  srcdir=`$ECHO "$0" | $SED "$dirname"`
+  srcdir=`$ECHO "$0" | $SED "$dirname; s,/tests\$,,"`
   test "$srcdir" = "$0" && srcdir=.
 fi