Re: robustifying remove_distdir?

2006-07-02 Thread Ralf Wildenhues
Hello David, Stepan, * Stepan Kasal wrote on Sat, Jul 01, 2006 at 09:32:27PM CEST: > On Fri, Jun 30, 2006 at 04:24:37PM -0400, David Fang wrote: > > 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

Re: robustifying remove_distdir?

2006-07-01 Thread Stepan Kasal
Hello, On Fri, Jun 30, 2006 at 04:24:37PM -0400, David Fang wrote: > 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? ... > - && rm -fr $(distdir); }; } > + && { until rm -fr $(distdir

Re: robustifying remove_distdir?

2006-06-30 Thread David Fang
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) \ || { f

robustifying remove_distdir?

2006-06-30 Thread David Fang
Hi, I'm have a strange problem with automake-1.9.5, where "make dist" is dying at the very end on $(am__remove_distdir) because the "rm -rf" fails. { test ! -d myproj || { find myproj -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr myproj; }; } rm: cannot remove directory `myproj/te