in reply to [SOLVED] Capture the make status
make should pass through the last exit status to system, or should exit itself with some status that indicates error.
Have you looked at system and how one can catch the exit status of a subprocess? I would look at autodie, which is available with recent versions of Perl, or at the following idiom:
system( $cmd ) == 0 or die "Couldn't launch/run [$cmd]: $? / $! / $^E";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capture the make status
by baxy77bax (Deacon) on Aug 26, 2013 at 12:00 UTC | |
by Corion (Patriarch) on Aug 26, 2013 at 13:24 UTC |