From 60919e758ff76705b5ada384b211af33dd2e400e Mon Sep 17 00:00:00 2001 From: levine Date: Wed, 17 Mar 1999 19:36:19 +0000 Subject: return non-zero exit status on failure --- bin/make_release | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/make_release b/bin/make_release index 051e66511a7..f965e26fd8e 100755 --- a/bin/make_release +++ b/bin/make_release @@ -126,6 +126,7 @@ chop ($now = `$date +"%a %b %d %T %Y"`); ######## ######## Setup signal handlers. ######## +$status = 1; #### Must get set to 0 explicitly to indicate success. $SIG{'HUP'} = $SIG{'INT'} = $SIG{'QUIT'} = $SIG{'TERM'} = 'cleanup'; @@ -142,13 +143,14 @@ if ($update_versions && "$kit" ne 'ace+tao') { $major_version = $minor_version = $beta_version = 0; $previous_version = $version = ''; - &check_workspace () || - &get_versions () || - &update_version_files () || - &update_changelog () || - &tag () || - &diff () || - &create_kit (); + $status = + &check_workspace () || + &get_versions () || + &update_version_files () || + &update_changelog () || + &tag () || + &diff () || + &create_kit (); } else { &create_kit (); } @@ -159,7 +161,7 @@ if ($update_versions && "$kit" ne 'ace+tao') { ######## Clean up when done or on signal. ######## sub cleanup { - exit; + exit $status; } -- cgit v1.2.1