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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6c764748730dd2c1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-13 08:38:24 PST Message-ID: <3A37A5FC.7E10DDAF@zxblr2f.grbl> Date: Wed, 13 Dec 2000 17:38:20 +0100 From: Gautier Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= X-Mailer: Mozilla 4.75 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnathtml in Ada ? References: <3A351287.8628BCFA@dpqwd.zblf> <913mhp$4oh$1@nnrp1.deja.com> <3A35FEC3.7F525B27@zxblr2f.grbl> <915h95$hj6$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: mac13-32.unine.ch X-Trace: 13 Dec 2000 17:38:20 +0100, mac13-32.unine.ch Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!sitelnet.unine.ch!mac13-32.unine.ch Xref: supernews.google.com comp.lang.ada:3075 Date: 2000-12-13T17:38:20+01:00 List-Id: Ted Dennison: > > For that I think the parameters given with "-o" options suffice: you > > add the prefix for searching files. At least the present version in > > Perl needs explicit paths. So (I think) you could do the library > > traversing in 100%-portable Ada. > > Ahh. So the perl version didn't bother to solve this problem either? I > guess I should have expected a hack from a perl program. :-) If you know a bit of perl, why not add the ada_include_path and ada_object_path yourself ?... The script is in the /bin directory of your GNAT distrib. But I feel there is a good reason to make these options _explicit_. [...] For use with non-GNAT sources, it doesn't harm: you gnatmake it and if the Ada is valid, all .ali files are created, even if link fails due to such and such import. I'm doing so to html-ize a project made with DEC Ada. > Is the perl version smart enough to check the gnat.adc file for > alternative unit name mappings? Didn't find it in the .pl, but again it is surely too much: - perhaps the .ali contains already the right alternative name (-> GNAT RM) - for alternernative naming, it is *easy* to do. Say you have plenty of .ada files (some with spec+body, some with non-GNAT naming - my case). You type "gnatchop *.ada", and 1 second later you have all .ads and .adb ! Then gnatmake xxxx, you have the .ali files. Finally: perl gnathtml ... and you have the Web site. The tool works well. It would *just* be cool to customise the tool. E.g. allow to add headers, links outside the main page, "A HREF"-ize the URLs in strings, why not add a tag for a background image ;-) ? I don't understand much of Perl, but who knows, with a bit of guess-work ?... But isn't the author of gnathtml.pl reading here ?... Gautier