From owner-freebsd-ports Fri Nov 28 13:31:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA09946 for ports-outgoing; Fri, 28 Nov 1997 13:31:24 -0800 (PST) (envelope-from owner-freebsd-ports) Received: from hwcn.org (main.hwcn.org [199.212.94.65]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA09924; Fri, 28 Nov 1997 13:31:02 -0800 (PST) (envelope-from hoek@hwcn.org) Received: from james.freenet.hamilton.on.ca (ac199@james.hwcn.org [199.212.94.66]) by hwcn.org (8.8.7/8.8.7) with ESMTP id QAA23564; Fri, 28 Nov 1997 16:31:13 -0500 (EST) Received: from localhost (ac199@localhost) by james.freenet.hamilton.on.ca (8.8.7/8.8.7) with SMTP id QAA16904; Fri, 28 Nov 1997 16:31:49 -0500 (EST) X-Authentication-Warning: james.freenet.hamilton.on.ca: ac199 owned process doing -bs Date: Fri, 28 Nov 1997 16:31:48 -0500 (EST) From: Tim Vanderhoek X-Sender: ac199@james.freenet.hamilton.on.ca To: Satoshi Asami cc: hoek@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: patch to bsd.port.mk: >1 md5 hash per file In-Reply-To: <199711280154.RAA02800@baloon.mimi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 27 Nov 1997, Satoshi Asami wrote: > * It would be nice if the md5 hash for both versions of the file > * could be included in files/md5, even if the addition of the 2nd > * hash had to be done manually. > > * - elif [ "$$CKSUM" = "$$CKSUM2" ]; then \ > * + elif expr "$$CKSUM2" : ".*$$CKSUM" > /dev/null; then \ > > Oh, I see. At first I thought you were talking about adding two lines > for the same file, actually you mean something like > > MD5 (imaze.tar) = 6c042fe0afcc3399b31b25ce16d9fb3b/1cfac4f65653dbd2ed43f8e842a9a374 Actually, I think what you first thought was what I meant... :-) ie. MD5 (uudeview-0.5.13.tar.gz) = fda32e2de4a6b92eb56f1e286ae3815a MD5 (uudeview-0.5.13.tar.gz) = dddf4c01973307c7d203f55c5e0c7fc3 After the md5 file get sucked in, the shell normally turns all the \n's into spaces, but even if IFS, etc. are set so that the shell doesn't do this, "expr" should still find the right string (well, it did when I tested it, anyways :). -- Outnumbered? Maybe. Outspoken? Never! tIM...HOEk