Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
forge001
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
forge001
Commits
36efb863
Commit
36efb863
authored
8 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
copied md5cat.pm from sourceforge repository
parent
1472d2f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
textarchive/lib/md5cat.pm
+10
-2
10 additions, 2 deletions
textarchive/lib/md5cat.pm
with
10 additions
and
2 deletions
textarchive/lib/md5cat.pm
+
10
−
2
View file @
36efb863
#
#
# $Id: md5cat.pm,v 1.
8
2016/08/0
1
0
9:40:20
gonter Exp $
# $Id: md5cat.pm,v 1.
9
2016/08/0
2
0
8:24:55
gonter Exp $
#
#
=head1 NAME
=head1 NAME
...
@@ -25,6 +25,9 @@ use strict;
...
@@ -25,6 +25,9 @@ use strict;
use
Digest::MD5::
File
;
use
Digest::MD5::
File
;
my
$run
=
1
;
sub
run
{
$run
;
}
sub
new
sub
new
{
{
my
$class
=
shift
;
my
$class
=
shift
;
...
@@ -46,6 +49,8 @@ sub new
...
@@ -46,6 +49,8 @@ sub new
$md5cat
->
set_catalog
();
$md5cat
->
set_catalog
();
$SIG
{
INT
}
=
sub
{
$run
=
0
};
$md5cat
;
$md5cat
;
}
}
...
@@ -532,9 +537,12 @@ sub digest_md5_list
...
@@ -532,9 +537,12 @@ sub digest_md5_list
my
@res
=
();
my
@res
=
();
my
$cnt
=
0
;
my
$cnt
=
0
;
while
(
my
$f
=
shift
(
@
_
))
MD5:
while
(
my
$f
=
shift
(
@
_
))
{
{
printf
("
%9d items processed
\n
",
$cnt
)
if
((
++
$cnt
%
10000
)
==
0
);
printf
("
%9d items processed
\n
",
$cnt
)
if
((
++
$cnt
%
10000
)
==
0
);
last
MD5
unless
(
$run
);
my
@st
=
stat
(
$f
);
my
@st
=
stat
(
$f
);
unless
(
@st
)
unless
(
@st
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment