On Mon, Mar 5, 2012 at 16:03, Thierry Vignaud <[email protected]> wrote: > On 5 March 2012 16:35, <[email protected]> wrote: >> +2011-04-16 Funda Wang <[email protected]> 0.31.5 >> + * remove empty dirs for perl modules >> + >> 2010-11-22 Funda Wang <[email protected]> 0.31.4 >> * xz 5.0 do not support '--text' option now. >> >> >> Modified: rpm/spec-helper/trunk/clean_perl >> =================================================================== >> --- rpm/spec-helper/trunk/clean_perl 2012-03-05 15:16:42 UTC (rev 3192) >> +++ rpm/spec-helper/trunk/clean_perl 2012-03-05 15:35:37 UTC (rev 3193) >> @@ -16,3 +16,5 @@ >> rm -f $i >> fi >> done >> + >> +find $d -depth -type d -exec rmdir {} 2>/dev/null \; > > uh? no -empty ?
it will work as rmdir will complain and errors are hidden, but yes this is ugly :)
