From jmhodges at gmail.com Mon May 21 02:45:21 2007 From: jmhodges at gmail.com (Jeff Hodges) Date: Mon, 21 May 2007 02:45:21 -0400 Subject: [Mkrf-users] setup_clean and hyphens in filenames Message-ID: <2c83f52c0705202345w16248506s41931695ff92aeca@mail.gmail.com> Hey, could someone explain the reasoning behind setup_clean always including 'lib/*-*' files into CLEAN? I've turned Yoshida Masato's expat bindings into a gem for uploading to rubyforge (yes, with his permission) but every time I `rake clean` it deletes the lib/xmltreebuilder-ja.rb and lib/xmlencoding-ja.rb files. IMHO, this is a bad thing. Any input would be great. Thanks. -- Jeff From hoanga at alum.rpi.edu Wed May 23 09:12:35 2007 From: hoanga at alum.rpi.edu (Alain Hoang) Date: Wed, 23 May 2007 22:12:35 +0900 Subject: [Mkrf-users] setup_clean and hyphens in filenames In-Reply-To: <2c83f52c0705202345w16248506s41931695ff92aeca@mail.gmail.com> References: <2c83f52c0705202345w16248506s41931695ff92aeca@mail.gmail.com> Message-ID: <46543DC3.8010103@alum.rpi.edu> Hi Jeff, On Mon, May 21, 2007 at 02:45:21AM -0400, Jeff Hodges wrote: > Hey, could someone explain the reasoning behind setup_clean always > including 'lib/*-*' files into CLEAN? I've gone through the svn logs and I'm afraid there's not much explanation on the exact reason for why files with a dash are deleted. > > I've turned Yoshida Masato's expat bindings into a gem for uploading > to rubyforge (yes, with his permission) but every time I `rake clean` > it deletes the lib/xmltreebuilder-ja.rb and lib/xmlencoding-ja.rb > files. IMHO, this is a bad thing. If this is the case, the glob expression is definitely too agressive. I can tweak it to be a little more conservative in trying to delete files. Perhaps files ending in '*-*so*' might be a better glob than what is in there now. A hack you can do now is to add a CLEAN.exclude("*-*") in your Rakefile and see if that can override what setup_clean is doing. Cheers, Alain