diff options
author | unknown <mwagner@here.mwagner.org> | 2004-07-07 16:29:10 -0500 |
---|---|---|
committer | unknown <mwagner@here.mwagner.org> | 2004-07-07 16:29:10 -0500 |
commit | 9c8965933ba5ff61040f944f3c0dc3086fdff70c (patch) | |
tree | cfe300f60a82b415f1bc0d3187eb6efc81a065f9 /Build-tools | |
parent | 6f45a5f18a0e7a8891e2106c85801f262c8ff069 (diff) | |
parent | fc3c71e9b6365ea1735aef3cc6ddb4dcbe19cff9 (diff) | |
download | mariadb-git-9c8965933ba5ff61040f944f3c0dc3086fdff70c.tar.gz |
Merge here.mwagner.org:/Volumes/BK/mysql-4.0
into here.mwagner.org:/Volumes/BK/mysql-4.0-work
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/my_md5sum | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Build-tools/my_md5sum b/Build-tools/my_md5sum index 481a665af1a..f4ac2f7d674 100755 --- a/Build-tools/my_md5sum +++ b/Build-tools/my_md5sum @@ -24,7 +24,8 @@ BEGIN use Digest::MD5; use Getopt::Long; -my $VER= "1.2"; +my $VER= "1.3"; +my $EXIT= 0; # # Strip the leading path info off the program name ($0). We want 'my_md5sum' @@ -78,6 +79,9 @@ if ($opt_check) # Print an error message if they don't match, else print OK print "$checkfile: FAILED\n" if $digest ne $checksum; print "$checkfile: OK\n" if $digest eq $checksum; + + # Set the exit() status to non-zero if FAILED + $EXIT= 1 if $digest ne $checksum; } } # Else generate the MD5 digest to STDOUT @@ -91,6 +95,8 @@ else } } +exit($EXIT); + # # This routine generates the MD5 digest of a file |