Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2001 13:48:52 -0700
From:      Peter J Jones <pjones@pmade.org>
To:        ports@FreeBSD.org
Subject:   Patch to ports/misc/sloccount
Message-ID:  <20010520134852.A39119@pmade.org>

next in thread | raw e-mail | index | archive | help
This patch makes sloccount use the FreeBSD md5 command. Without
this patch sloccount does not even work!

--- break_filelist.orig	Sun May 20 13:41:20 2001
+++ break_filelist	Sun May 20 13:46:26 2001
@@ -460,7 +460,7 @@
    return $cached_digest;  # We did, so here's what it was.
  }
 
- my $results = `md5sum "$filename"`;
+ my $results = `md5 -q "$filename"`;
  $results =~ s/^\s*//;  # Not needed for GNU Textutils.
  $results =~ s/[^a-fA-F0-9].*//; # Strip away end.
  $cached_digest = $results;           # Store in cache.

-- 
.......................................................................
: Peter Jones (pjones@pmade.org)     :      Unix Geek - Four Wheeling :
: http://pmade.org                   :     Code Writing - Jesus Freak :
:....................................:................................:
:echo er|perl -0160 -pe ';$;=ord$/;s;^;"\U$/".chr($\;-11).chr$\;+4;e;':
:.....................................................................:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010520134852.A39119>