summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authorunknown <mwagner@here.mwagner.org>2004-06-22 12:57:52 -0500
committerunknown <mwagner@here.mwagner.org>2004-06-22 12:57:52 -0500
commita34194056e9e193403c1f21055f3ffb1a187d9a4 (patch)
treefc25443c82077b38ab65e417ab57ed4a9c513e40 /Build-tools
parent6d0755c1f19075e3a6780409c67abf7eff287a99 (diff)
downloadmariadb-git-a34194056e9e193403c1f21055f3ffb1a187d9a4.tar.gz
my_md5sum:
Change behaviour to be like the md5sum in GNU coreutils Build-tools/my_md5sum: Change behaviour to be like the md5sum in GNU coreutils
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/my_md5sum7
1 files changed, 4 insertions, 3 deletions
diff --git a/Build-tools/my_md5sum b/Build-tools/my_md5sum
index d58a8bb7200..20742ee2ed0 100755
--- a/Build-tools/my_md5sum
+++ b/Build-tools/my_md5sum
@@ -13,7 +13,7 @@ use strict;
use Digest::MD5;
use Getopt::Long;
-my $VER= "1.0";
+my $VER= "1.1";
#
# Strip the leading path info off the program name ($0). We want 'my_md5sum'
@@ -64,8 +64,9 @@ if ($opt_check)
my $digest= &mkmd5($checkfile);
# Check the fresh MD5 against what is recorded in the file
- # Print an error message if they don't match
- print "$0: MD5 check failed for '$checkfile'\n" if $digest ne $checksum;
+ # 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;
}
}
# Else generate the MD5 digest to STDOUT