You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/09/09 20:11:33 UTC
svn commit: rev 43619 - spamassassin/trunk/build
Author: felicity
Date: Thu Sep 9 11:11:33 2004
New Revision: 43619
Modified:
spamassassin/trunk/build/md5sum.pl
spamassassin/trunk/build/sha1sum.pl
Log:
make the md5/sha1sum script spit out the filename too. makes it a lot easier to do cut/paste, and standardizes it with the actual md5/sha1sum programs
Modified: spamassassin/trunk/build/md5sum.pl
==============================================================================
--- spamassassin/trunk/build/md5sum.pl (original)
+++ spamassassin/trunk/build/md5sum.pl Thu Sep 9 11:11:33 2004
@@ -1,3 +1,8 @@
#!/usr/local/bin/perl
use Digest::MD5 qw/md5_hex/;
-print md5_hex(<STDIN>),"\n";
+
+$/=undef;
+
+while(<>) {
+ print md5_hex($_)," $ARGV\n";
+}
Modified: spamassassin/trunk/build/sha1sum.pl
==============================================================================
--- spamassassin/trunk/build/sha1sum.pl (original)
+++ spamassassin/trunk/build/sha1sum.pl Thu Sep 9 11:11:33 2004
@@ -1,3 +1,8 @@
#!/usr/local/bin/perl
use Digest::SHA1 qw/sha1_hex/;
-print sha1_hex(<STDIN>),"\n";
+
+$/=undef;
+
+while(<>) {
+ print sha1_hex($_)," $ARGV\n";
+}