From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8d08fdfceaafadda X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!z3g2000prd.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Software for renaming a whole hierarchy of packages? Date: Fri, 18 Dec 2009 08:39:18 -0800 (PST) Organization: http://groups.google.com Message-ID: <45b650c0-8b92-42ce-867e-17f45c134663@z3g2000prd.googlegroups.com> References: <8629e45a-b954-434d-8251-45f46cf1f6a2@b2g2000yqi.googlegroups.com> NNTP-Posting-Host: 149.32.224.33 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1261154358 17927 127.0.0.1 (18 Dec 2009 16:39:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 18 Dec 2009 16:39:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z3g2000prd.googlegroups.com; posting-host=149.32.224.33; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8425 Date: 2009-12-18T08:39:18-08:00 List-Id: On Dec 18, 7:15=A0am, Jean-Pierre Rosen wrote: > mockturtle a =E9crit : > > > Dear.all, > > I have the following problem: =A0I have a (quite large) hierarchy of > > packages (with package root, say, FOO) that I modified to suit my > > needs. =A0Since 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. =A0More meaningful, isn't > > it?:-) to the new one. =A0This means that I have to change every > > FOO. into BOO.. =A0I could do this by hand, but i= t > > is boring and error-prone, I could do this with sed, but I could mess > > everything up. =A0Are 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