From: Alexandre Oliva Date: Thu, 1 Apr 1999 23:18:59 +0000 (+0000) Subject: * depout.m4: Fix sed expression for extracting `dirpart'. X-Git-Tag: user-dep-gen-merge-branchpoint~23 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ead848124cd00b903c1d29e55d35c950f25d2287;p=thirdparty%2Fautomake.git * depout.m4: Fix sed expression for extracting `dirpart'. --- diff --git a/ChangeLog b/ChangeLog index d68402735..93f7906a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-04-02 Raja R Harinath + + * depout.m4: Fix sed expression for extracting `dirpart'. + 1999-03-29 Tom Tromey * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'. diff --git a/m4/depout.m4 b/m4/depout.m4 index 4a753c960..4365259ac 100644 --- a/m4/depout.m4 +++ b/m4/depout.m4 @@ -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"