From: Tom Tromey Date: Fri, 5 Apr 1996 07:44:21 +0000 (+0000) Subject: Bug fix X-Git-Tag: Release-0-32~9 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2c1e826400c8865448929c9642ccf018bf301fe2;p=automake.git Bug fix --- diff --git a/ChangeLog b/ChangeLog index 999289bd..7222ffaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Fri Apr 5 00:22:14 1996 Tom Tromey + * mkinstalldirs (errstatus): Don't necessarily die if mkdir + fails. + * automake.in (handle_source_transform): Typo fix. Thu Apr 4 15:10:50 1996 Tom Tromey diff --git a/lib/mkinstalldirs b/lib/mkinstalldirs index 0801ec2c..cc8783ed 100755 --- a/lib/mkinstalldirs +++ b/lib/mkinstalldirs @@ -20,7 +20,11 @@ for file in ${1+"$@"} ; do if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 - mkdir "$pathcomp" || errstatus=$? + mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$? + fi + + if test ! -d "$pathcomp"; then + errstatus=$lasterr fi pathcomp="$pathcomp/" diff --git a/mkinstalldirs b/mkinstalldirs index 0801ec2c..cc8783ed 100755 --- a/mkinstalldirs +++ b/mkinstalldirs @@ -20,7 +20,11 @@ for file in ${1+"$@"} ; do if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 - mkdir "$pathcomp" || errstatus=$? + mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$? + fi + + if test ! -d "$pathcomp"; then + errstatus=$lasterr fi pathcomp="$pathcomp/"