From owner-freebsd-ports Sun May 20 13:49: 5 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pmade.org (dsl-att1-118-93.sb.101freeway.net [12.44.118.93]) by hub.freebsd.org (Postfix) with ESMTP id B066737B43E for ; Sun, 20 May 2001 13:49:03 -0700 (PDT) (envelope-from pjones@pmade.org) Received: (from pjones@localhost) by pmade.org (8.11.1/8.11.1) id f4KKmqD39498 for ports@FreeBSD.org; Sun, 20 May 2001 13:48:52 -0700 (PDT) (envelope-from pjones) Date: Sun, 20 May 2001 13:48:52 -0700 From: Peter J Jones To: ports@FreeBSD.org Subject: Patch to ports/misc/sloccount Message-ID: <20010520134852.A39119@pmade.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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