summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-17 19:36:19 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-17 19:36:19 +0000
commit60919e758ff76705b5ada384b211af33dd2e400e (patch)
treed2321db20a0d8d1c768c52b49a3603d57ca1ca84 /bin
parent3c57b4e14eecac274e8562c3acde37179b4ecc80 (diff)
downloadATCD-60919e758ff76705b5ada384b211af33dd2e400e.tar.gz
return non-zero exit status on failure
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_release18
1 files changed, 10 insertions, 8 deletions
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;
}