automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: robustifying remove_distdir?


From: David Fang
Subject: Re: robustifying remove_distdir?
Date: Fri, 30 Jun 2006 16:24:37 -0400 (EDT)

In reply to myself:

> Is there a way of making the "rm -rf" more robust?  Maybe with some sort
> of "while distdir exists, try removing" loop?

So far this works for me:

In automake-1.9/am/distdir.am:
------->8 patch snip 8<---------
 am__remove_distdir = \
   { test ! -d $(distdir) \
     || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-         && rm -fr $(distdir); }; }
+         && { until rm -fr $(distdir); do :; done; }; }; }
 endif %?TOPDIR_P%

 .PHONY: distdir
------->8 patch snip 8<---------

Comments?



David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
        -- (2400 baud? Netscape 3.0?? lynx??? No problem!)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]