Hi! Why not automagically delete generated header files like this? File.open("Makefile","ab+"){|f| f.puts f.puts("tclean:; @$(RM) "+(Dir[''*.t''].map{|fn| fn.sub(''.t'',''.h'')}.join)) f.puts } Reduces user error :) Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
On 0202, KONTRA Gergely wrote:> Hi! > Why not automagically delete generated header files like this? > File.open("Makefile","ab+"){|f| > f.puts > f.puts("tclean:; @$(RM) "+(Dir[''*.t''].map{|fn| fn.sub(''.t'',''.h'')}.join)) > f.puts > } > Reduces user error :)What about this idea? No replies, no flames, no CVS changes :) Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
For some reason, this was "auto-discarded" by mailman -- so I am reposting it. Curt Nick Kral wrote:> > I''m sure Kevin is livin'' it up on vacation right now. Did you want to > delete the .cpp files too? > > Nick > > KONTRA Gergely wrote: > > >On 0202, KONTRA Gergely wrote: > > > > > >>Hi! > >>Why not automagically delete generated header files like this? > >>File.open("Makefile","ab+"){|f| > >> f.puts > >> f.puts("tclean:; @$(RM) "+(Dir[''*.t''].map{|fn| > fn.sub(''.t'',''.h'')}.join)) > >> f.puts > >>} > >>Reduces user error :) > >> > >> > > > >What about this idea? No replies, no flames, no CVS changes :) > > > >Gergo > > > > > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.587 / Virus Database: 371 - Release Date: 2/12/2004 >
KONTRA Gergely wrote:>>Why not automagically delete generated header files like this? >>File.open("Makefile","ab+"){|f| >> f.puts >> f.puts("tclean:; @$(RM) "+(Dir[''*.t''].map{|fn| fn.sub(''.t'',''.h'')}.join)) >> f.puts >>} >>Reduces user error :) > > > What about this idea? No replies, no flames, no CVS changes :)This is a great idea, and I will definitely incorporate it after the 0.2 release. I was trying to solve the problem inside make, rather than in ruby/extconf. Your solution is much better. Unfortunately, my vacation has been far more busy than I expected. It has been fun, and relaxing, but has not left me much time for wxruby :-( The good news is that I am probably going to cut my hours at work when I get back, in large part to free up more time for projects like wxruby. Sorry and thanks, Kevin
Kevin Smith wrote:> > KONTRA Gergely wrote: > >>Why not automagically delete generated header files like this? > >>File.open("Makefile","ab+"){|f| > >> f.puts > >> f.puts("tclean:; @$(RM) "+(Dir[''*.t''].map{|fn| > fn.sub(''.t'',''.h'')}.join)) > >> f.puts > >>} > >>Reduces user error :) > > > > > > What about this idea? No replies, no flames, no CVS changes :) > > This is a great idea, and I will definitely incorporate it after the 0.2 > release. I was trying to solve the problem inside make, rather than in > ruby/extconf. Your solution is much better.Windows will need to use "DEL" instead of "RM" Curt