From: Hugh Sasse Staff Elec Eng Date: 2001-01-03T01:53:27+09:00 Subject: [ruby-talk:8524] Re: 1.6.2 on Solaris2.5.1 On Wed, 3 Jan 2001, ts wrote: > >>>>> "H" == Hugh Sasse Staff Elec Eng writes: > > H> + @for i in cygwin djgpp ext lib misc missing sample win32 > > It will not work, you must also go in the subdirectories ext/etc, > ext/gdbm, etc ... to remove the Makefile > > pigeon% find ext -name Makefile [pertinent examples trimmed] I'm loathe to create more dependencies: a working bourne shell and a working find program, but I also don't want to get tied in knots with the boolean operators of find. I find that sort of thing most unreadable, but this violates DRY to a fair extent: gdiff -u Makefile.in.orig Makefile.in --- Makefile.in.orig Mon Dec 25 03:55:18 2000 +++ Makefile.in Tue Jan 2 16:44:47 2001 @@ -115,6 +115,12 @@ @rm -f Makefile ext/extmk.rb config.h @rm -f ext/config.cache config.cache config.log config.status @rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp + @find . -type f -name Makefile -exec rm -f {} \; + @find . -type f -name core -exec rm -f {} \; + @for extn in cache log status + @do + @find . -type f -name config.$extn -exec rm -f {} \; + @done realclean: distclean @rm -f parse.c Is There A Better Way To Do It? We can't use ruby to distclean ruby, of course... > > Guy Decoux > > Hugh hgs@dmu.ac.uk