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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!gegeweb.org!usenet-fr.net!ircam.fr!freenix!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Software for renaming a whole hierarchy of packages? Date: Fri, 18 Dec 2009 16:15:58 +0100 Organization: Adalog Message-ID: References: <8629e45a-b954-434d-8251-45f46cf1f6a2@b2g2000yqi.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1261152471 10448 195.25.228.57 (18 Dec 2009 16:07:51 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 18 Dec 2009 16:07:51 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <8629e45a-b954-434d-8251-45f46cf1f6a2@b2g2000yqi.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:8423 Date: 2009-12-18T16:15:58+01:00 List-Id: 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. into BOO.. 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