comp.lang.ada
 help / color / mirror / Atom feed
* Software for renaming a whole hierarchy of packages?
@ 2009-12-18 14:56 mockturtle
  2009-12-18 15:15 ` Ludovic Brenta
  2009-12-18 15:15 ` Jean-Pierre Rosen
  0 siblings, 2 replies; 6+ messages in thread
From: mockturtle @ 2009-12-18 14:56 UTC (permalink / raw)


Dear.all,
I have the following problem:  I have a (quite large) hierarchy of
packages (with package root, say, FOO) that I modified to suit my
needs.  Since now the two hierarchies are quite different, I would
like to rename the root of the modified version, both to avoid clashes
and to give a more meaningful name (say, BOO.  More meaningful, isn't
it?:-) to the new one.  This means that I have to change every
FOO.<something> into BOO.<something>.  I could do this by hand, but it
is boring and error-prone, I could do this with sed, but I could mess
everything up.  Are you aware of some tool (maybe ASIS based?) that
could help me in this?

Thank you in advance for your help.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Software for renaming a whole hierarchy of packages?
  2009-12-18 14:56 Software for renaming a whole hierarchy of packages? mockturtle
@ 2009-12-18 15:15 ` Ludovic Brenta
  2009-12-18 15:15 ` Jean-Pierre Rosen
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Brenta @ 2009-12-18 15:15 UTC (permalink / raw)


mockturtle wrote on comp.lang.ada:
> Dear.all,
> I have the following problem:  I have a (quite large) hierarchy of
> packages (with package root, say, FOO) that I modified to suit my
> needs.  Since now the two hierarchies are quite different, I would
> like to rename the root of the modified version, both to avoid clashes
> and to give a more meaningful name (say, BOO.  More meaningful, isn't
> it?:-) to the new one.  This means that I have to change every
> FOO.<something> into BOO.<something>.  I could do this by hand, but it
> is boring and error-prone, I could do this with sed, but I could mess
> everything up.  Are you aware of some tool (maybe ASIS based?) that
> could help me in this?
>
> Thank you in advance for your help.

Adasubst by Jean-Pierre Rosen: http://www.adalog.fr/compo2.htm#adasubst

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Software for renaming a whole hierarchy of packages?
  2009-12-18 14:56 Software for renaming a whole hierarchy of packages? mockturtle
  2009-12-18 15:15 ` Ludovic Brenta
@ 2009-12-18 15:15 ` Jean-Pierre Rosen
  2009-12-18 16:39   ` Anh Vo
  1 sibling, 1 reply; 6+ messages in thread
From: Jean-Pierre Rosen @ 2009-12-18 15:15 UTC (permalink / raw)


mockturtle a �crit :
> Dear.all,
> I have the following problem:  I have a (quite large) hierarchy of
> packages (with package root, say, FOO) that I modified to suit my
> needs.  Since now the two hierarchies are quite different, I would
> like to rename the root of the modified version, both to avoid clashes
> and to give a more meaningful name (say, BOO.  More meaningful, isn't
> it?:-) to the new one.  This means that I have to change every
> FOO.<something> into BOO.<something>.  I could do this by hand, but it
> is boring and error-prone, I could do this with sed, but I could mess
> everything up.  Are you aware of some tool (maybe ASIS based?) that
> could help me in this?

Sure ! :-)

Just download AdaSubst from http://www.adalog.fr/compo2.htm#adasubst

It does exactly this, and much more (if you move components inside your
hierarchy, for example).

-- 
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Software for renaming a whole hierarchy of packages?
  2009-12-18 15:15 ` Jean-Pierre Rosen
@ 2009-12-18 16:39   ` Anh Vo
  2009-12-19  8:36     ` mockturtle
  2009-12-19 15:51     ` Marc A. Criley
  0 siblings, 2 replies; 6+ messages in thread
From: Anh Vo @ 2009-12-18 16:39 UTC (permalink / raw)


On Dec 18, 7:15 am, Jean-Pierre Rosen <ro...@adalog.fr> wrote:
> mockturtle a écrit :
>
> > Dear.all,
> > I have the following problem:  I have a (quite large) hierarchy of
> > packages (with package root, say, FOO) that I modified to suit my
> > needs.  Since now the two hierarchies are quite different, I would
> > like to rename the root of the modified version, both to avoid clashes
> > and to give a more meaningful name (say, BOO.  More meaningful, isn't
> > it?:-) to the new one.  This means that I have to change every
> > FOO.<something> into BOO.<something>.  I could do this by hand, but it
> > is boring and error-prone, I could do this with sed, but I could mess
> > everything up.  Are you aware of some tool (maybe ASIS based?) that
> > could help me in this?
>
> Sure ! :-)
>
> Just download AdaSubst fromhttp://www.adalog.fr/compo2.htm#adasubst
>
> It does exactly this, and much more (if you move components inside your
> hierarchy, for example).

There is another option to be considered. GPS (GNAT Programming
Studio) has Refactoring features.

Anh Vo



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Software for renaming a whole hierarchy of packages?
  2009-12-18 16:39   ` Anh Vo
@ 2009-12-19  8:36     ` mockturtle
  2009-12-19 15:51     ` Marc A. Criley
  1 sibling, 0 replies; 6+ messages in thread
From: mockturtle @ 2009-12-19  8:36 UTC (permalink / raw)


Ludovic, Jean-Pierre, Anh,
thank you for your suggestions!



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Software for renaming a whole hierarchy of packages?
  2009-12-18 16:39   ` Anh Vo
  2009-12-19  8:36     ` mockturtle
@ 2009-12-19 15:51     ` Marc A. Criley
  1 sibling, 0 replies; 6+ messages in thread
From: Marc A. Criley @ 2009-12-19 15:51 UTC (permalink / raw)


Anh Vo wrote:
> There is another option to be considered. GPS (GNAT Programming
> Studio) has Refactoring features.
> 

That's the way I do it, though you still have to manually rename the 
files if you're intending to conform to GNAT's default file naming 
conventions.

Marc A. Criley



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-19 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-18 14:56 Software for renaming a whole hierarchy of packages? mockturtle
2009-12-18 15:15 ` Ludovic Brenta
2009-12-18 15:15 ` Jean-Pierre Rosen
2009-12-18 16:39   ` Anh Vo
2009-12-19  8:36     ` mockturtle
2009-12-19 15:51     ` Marc A. Criley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox