1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in (RMDIRS): use rmdir -p if possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-03-22 09:01:19 +00:00
parent cce8bbb794
commit 0edceaa7c7
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,6 @@
Mon Mar 22 17:37:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
Mon Mar 22 18:01:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (RMDIRS): use rmdir -p if possible.
* Makefile.in ({dist,real}clean-ext): fix for removing ext
directories.

View file

@ -337,7 +337,12 @@ AC_USE_SYSTEM_EXTENSIONS
AC_SUBST(RM, ['rm -f'])
AC_SUBST(CP, ['cp'])
AC_SUBST(RMDIRS, ['$(top_srcdir)/tool/rmdirs'])
RMDIRS='$(top_srcdir)/tool/rmdirs'
mkdir "rmdirs_$$_test" "rmdirs_$$_test/a"
rmdir -p "rmdirs_$$_test/a" 2>/dev/null &&
{ test -d "rmdirs_$$_test" || RMDIRS='rmdir -p'; }
rmdir "rmdirs_$$_test/a" "rmdirs_$$_test" 2>/dev/null
AC_SUBST(RMDIRS)
AC_SUBST(RMALL, ['rm -fr'])
AC_MSG_CHECKING([for cd using phisical directory])