info-inventor-dev
[Top] [All Lists]

RE: OpenInventor on SUN, X error

To: Alexandre Naaman <naaman@xxxxxxxxxxxxxxxxxxxx>
Subject: RE: OpenInventor on SUN, X error
From: Rasmus Tamstorf <tamstorf@xxxxxxxxxxxxx>
Date: Thu, 8 Feb 2001 15:52:36 -0800
Cc: "Connolly, Steven V." <connolsv@xxxxxxxx>, Loring Holden <lsh@xxxxxxxxxxxx>, Jonathan Lim <jlim@xxxxxxxxxxxxxxxxxxxx>, info-inventor-dev@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.10.10102081504000.106440-100000@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
I've actually had to deal with this problem too, and although it does
require a lot of cvs check-in/outs I would vote for changing the
filenames. It's really easy to write a little script like the one below to
do the job, so it shouldn't be too painful. 

The only little detail is that the source code actually does #include of
.c++ files in some places. These of course also have to be change, but a
quick perl script can take care of that too.

Rasmus

On Thu, 8 Feb 2001, Alexandre Naaman wrote:

> On Thu, 8 Feb 2001, Connolly, Steven V. wrote:
> 
> > 
> >    I dont think the file suffixes should determine what environment is used
> > (g++, etc.) and temporary copies can cause problems when an error stops the
> > Makefile. Links are ok with me but I would have difficulty trying to update
> > the GNUMakefile's that come with OpenInventor to do that. It might be easier
> > to write some scripts that change the names. They only have to be executed
> > once.
> 
> find . -name \*.c++ -exec renameFiles {} \;
> 
> where renameFiles is:
> 
> #/bin/sh
> mv $1 `echo $1|cut -f1 -d.`.cc
> 
> or something along those lines.
> 
> A+,
> 
> Alex.
> 
> 

-----------------------------------------------------------------------------
Rasmus.Tamstorf@xxxxxxxxxx         "A problem worthy of attack, 
Walt Disney Feature Animation       proves its worth by hitting back" Kumbel
-----------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>