]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* depout.m4: Fix sed expression for extracting `dirpart'.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 1 Apr 1999 23:18:59 +0000 (23:18 +0000)
committerAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 1 Apr 1999 23:18:59 +0000 (23:18 +0000)
ChangeLog
m4/depout.m4

index d68402735e0fd5e83887484c42280f18f5da941f..93f7906a8819a891e89a77eb531c5b8542679c34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1999-04-02  Raja R Harinath  <harinath@cs.umn.edu>
+
+       * depout.m4: Fix sed expression for extracting `dirpart'.
+
 1999-03-29  Tom Tromey  <tromey@cygnus.com>
 
        * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'.
index 4a753c960bc1d9e4248616f570405d9725a21347..4365259ac4fa7af68197176941bff064366c7a10 100644 (file)
@@ -10,7 +10,7 @@ dnl need in order to bootstrap the dependency handling code.
 AC_DEFUN(AM_OUTPUT_DEPENDENCY_COMMANDS,[
 AC_OUTPUT_COMMANDS([
 find . -name Makefile -print | while read mf; do
-  # Extract the definition of DEP_FILES from the Makefile withou
+  # Extract the definition of DEP_FILES from the Makefile without
   # running `make'.
   deps="`sed -n -e '
     /^DEP_FILES = .*\\\\$/ {
@@ -25,7 +25,7 @@ find . -name Makefile -print | while read mf; do
     /^DEP_FILES = / s/^DEP_FILES = //p' $mf`"
   # If we found a definition, proceed to create all the files.
   if test -n "$deps"; then
-    dirpart="`echo $mf | sed -e 's|/.*$||'`"
+    dirpart="`echo $mf | sed -e 's|/[^/]*$||'`"
     test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
     for file in $deps; do
       test -f "$dirpart/$file" || : > "$dirpart/$file"