Re: File.basename() and mkmf.rb

From: nobu.nokada@...
Date: 2004-05-26 23:43:24 UTC
List: ruby-core #2953
Hi,

At Thu, 27 May 2004 04:34:36 +0900,
Charles Mills wrote in [ruby-core:02952]:
> My problem is that I have files with multiple extensions (ie. 
> 'file.y.c').  I have added rules for these files in ./depends and 
> changed 'SRC_EXT', but the line:
>      804       $objs.push(File.basename(f, ".*") << "." << $OBJEXT)
> doesn't do what I want so I just generate $objs myself.

make can deal with it?

> File.basename(f, ".*") only gets rid of the first suffix, not both or 
> all suffixes.  Is this by design?

I think so.

-- 
Nobu Nakada

In This Thread