mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3afa01255d
commit
6abe539cfc
5 changed files with 15 additions and 6 deletions
|
@ -1,4 +1,6 @@
|
|||
Thu Jul 22 03:23:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Jul 22 06:26:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
|
||||
|
||||
* configure.in (RUBY_EXTERN): FUNCTION-BODY was missing.
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ MAKEDIRS = @MKDIR_P@
|
|||
CP = cp
|
||||
MV = mv
|
||||
RM = rm -f
|
||||
RMDIR = @RMDIR@
|
||||
RMDIRS = @RMDIRS@
|
||||
RMALL = @RMALL@
|
||||
NM = @NM@
|
||||
|
@ -273,7 +274,7 @@ clean-ext distclean-ext realclean-ext::
|
|||
done
|
||||
|
||||
distclean-ext realclean-ext::
|
||||
@-rmdir ext 2> /dev/null || true
|
||||
@-$(RMDIR) ext 2> /dev/null || true
|
||||
|
||||
clean-extout:
|
||||
@-$(RMDIRS) $(EXTOUT) 2> /dev/null || true
|
||||
|
|
|
@ -361,10 +361,14 @@ AC_USE_SYSTEM_EXTENSIONS
|
|||
AC_SUBST(RM, ['rm -f'])
|
||||
AC_SUBST(CP, ['cp'])
|
||||
RMDIRS='$(top_srcdir)/tool/rmdirs'
|
||||
RMDIR=rmdir
|
||||
mkdir "rmdirs_$$_test" "rmdirs_$$_test/a"
|
||||
rmdir -p "rmdirs_$$_test/a" 2>/dev/null &&
|
||||
{ test -d "rmdirs_$$_test" || RMDIRS='rmdir -p'; }
|
||||
rmdir --ignore-fail-on-non-empty "rmdirs_$$_test" 2>/dev/null &&
|
||||
RMDIR='rmdir --ignore-fail-on-non-empty'
|
||||
$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(RMDIR)
|
||||
AC_SUBST(RMDIRS)
|
||||
AC_SUBST(RMALL, ['rm -fr'])
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ RUBY = $(MINIRUBY)
|
|||
WORKDIRS = $(ENCSODIR) $(TRANSSODIR) enc enc/trans
|
||||
|
||||
RM = @RM@
|
||||
RMDIR = @RMDIR@
|
||||
RMDIRS = @RMDIRS@
|
||||
MAKEDIRS = @MAKEDIRS@
|
||||
|
||||
.SUFFIXES: .trans
|
||||
|
|
|
@ -133,11 +133,11 @@ clean:
|
|||
@$(RM) <%=pathrep[clean]%>
|
||||
% end
|
||||
% %w[$(TRANSSODIR) $(ENCSODIR)].each do|dir|
|
||||
@-rmdir <%=pathrep[dir]%>
|
||||
@-$(RMDIR) <%=pathrep[dir]%>
|
||||
% end
|
||||
|
||||
clean-srcs:
|
||||
@$(RM) <%=pathrep['$(TRANSCSRCS)']%>
|
||||
% %w[enc/trans enc].each do|dir|
|
||||
@-rmdir <%=pathrep[dir]%>
|
||||
@-$(RMDIR) <%=pathrep[dir]%>
|
||||
% end
|
||||
|
|
Loading…
Reference in a new issue