Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
052fd99e
Commit
052fd99e
authored
Jun 22, 2004
by
mwagner@here.mwagner.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into here.mwagner.org:/Volumes/BK/mysql-4.0
parents
5bbb5bb5
b88e6476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Build-tools/my_md5sum
Build-tools/my_md5sum
+4
-3
No files found.
Build-tools/my_md5sum
View file @
052fd99e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment