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
9a9c59db
Commit
9a9c59db
authored
Jun 22, 2004
by
unknown
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
1c1dcdd1
5b2e07b1
Changes
1
Show 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 @
9a9c59db
...
@@ -13,7 +13,7 @@ use strict;
...
@@ -13,7 +13,7 @@ use strict;
use
Digest::
MD5
;
use
Digest::
MD5
;
use
Getopt::
Long
;
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'
# Strip the leading path info off the program name ($0). We want 'my_md5sum'
...
@@ -64,8 +64,9 @@ if ($opt_check)
...
@@ -64,8 +64,9 @@ if ($opt_check)
my
$digest
=
&
mkmd5
(
$checkfile
);
my
$digest
=
&
mkmd5
(
$checkfile
);
# Check the fresh MD5 against what is recorded in the file
# Check the fresh MD5 against what is recorded in the file
# Print an error message if they don't match
# Print an error message if they don't match, else print OK
print
"
$0: MD5 check failed for '
$checkfile
'
\n
"
if
$digest
ne
$checksum
;
print
"
$checkfile
: FAILED
\n
"
if
$digest
ne
$checksum
;
print
"
$checkfile
: OK
\n
"
if
$digest
eq
$checksum
;
}
}
}
}
# Else generate the MD5 digest to STDOUT
# 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