]> sourceware.org Git - automake.git/commitdiff
* defs: Ensure srcdir is always absolute.
authorTom Tromey <tromey@redhat.com>
Sat, 10 Apr 1999 22:51:14 +0000 (22:51 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 10 Apr 1999 22:51:14 +0000 (22:51 +0000)
tests/ChangeLog
tests/defs

index 8de7b4393819e764a69ab1b03b4b40b0a437f763..1276f8915f98b80824a7c7e2626633f1719b5646 100644 (file)
@@ -1,5 +1,7 @@
 1999-04-10  Tom Tromey  <tromey@cygnus.com>
 
+       * defs: Ensure srcdir is always absolute.
+
        * Makefile.am (XFAIL_TESTS): Removed cond8.test.
 
        * gcj2.test: New file.
index d21540a71879bb9e713c22b399d6cfbe8c06c77f..e66f96b973fe25a42e7f681e53c8fe0502bfb183 100644 (file)
@@ -8,13 +8,14 @@ test -f $srcdir/defs || {
    exit 1
 }
 
-# If srcdir is relative, we need to modify it.
+# Always use an absolute srcdir.  Otherwise symlinks made in subdirs
+# of the test dir just won't work.
 case "$srcdir" in
  /*)
     ;;
 
  *)
-    srcdir="../$srcdir"
+    srcdir="`cd $srcdir && pwd`"
     ;;
 esac
 
This page took 0.02768 seconds and 5 git commands to generate.