Be tolerant if rm was not able to remove the test directory.

This commit is contained in:
Stepan Kasal 2006-04-01 16:09:13 +00:00
parent 335e09466c
commit 1a74a211bc
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-04-01 Eric Blake <ebb9@byu.net>
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
* lib/autotest/general.m4: Be tolerant of existing directory when
rm failed to remove it.
2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* bin/autoupdate.in: Redefine m4_location so that warnings print

View File

@ -699,7 +699,8 @@ do
find $at_group_dir -type d ! -perm -700 -exec chmod u+rwx \{\} \;
rm -fr $at_group_dir
fi
mkdir $at_group_dir ||
# Be tolerant if the above `rm' was not able to remove the directory.
AS_MKDIR_P([$at_group_dir]) ||
AS_ERROR([cannot create $at_group_dir])
cd $at_group_dir
;;

View File

@ -940,7 +940,7 @@ m4_define([AS_MKDIR_P],
as_dir=`AS_DIRNAME("$as_dir")`
done
test ! -n "$as_dirs" || mkdir $as_dirs
fi || AS_ERROR([cannot create directory $1]); }
fi || AS_ERROR([cannot create directory $1]); }dnl
])# AS_MKDIR_P