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 Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp20-2.free.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: How to exit an Ada program with (unix shell) error code? References: <49ba30c9-a1e6-4346-8618-d256f87ac301@s31g2000vbp.googlegroups.com> Date: Mon, 04 May 2009 11:17:33 +0200 Message-ID: <87ws8xkz0y.fsf@willow.rfc1149.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:DQR2aLOAaOtqBIoXxIyPuemfWLQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 04 May 2009 11:17:37 MEST NNTP-Posting-Host: 91.121.19.179 X-Trace: 1241428657 news-3.free.fr 22582 91.121.19.179:43229 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:5673 Date: 2009-05-04T11:17:37+02:00 List-Id: >>>>> "Reinert" == reinkor writes: Reinert> I want to use Ada programs within unix/linux makefiles and Reinert> shell scripts. Then these programs must sometimes exit with an Reinert> exit code (error status) so execution of the Makefile/scripts Reinert> halts. Reinert> How I do this ? Ada.Command_Line.Set_Exit_Status(your_integer); Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/