Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 61472 invoked from network); 24 Sep 2009 22:17:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 22:17:36 -0000 Received: (qmail 49572 invoked by uid 500); 24 Sep 2009 22:17:35 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 49494 invoked by uid 500); 24 Sep 2009 22:17:35 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 49478 invoked by uid 99); 24 Sep 2009 22:17:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 22:17:35 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO spaceymail-a2.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 22:17:25 +0000 Received: from [10.2.8.78] (wsip-70-183-62-251.oc.oc.cox.net [70.183.62.251]) by spaceymail-a2.g.dreamhost.com (Postfix) with ESMTP id 40133EE3DA for ; Thu, 24 Sep 2009 15:17:05 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <4ABBE083.4080709@apache.org> References: <4ABBE083.4080709@apache.org> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <90CB9A4D-9454-4368-9521-5D1C9778D3EB@gbiv.com> Content-Transfer-Encoding: quoted-printable From: "Roy T. Fielding" Subject: Re: [PATCH] roll.sh output equal checksum files independent of OS Date: Thu, 24 Sep 2009 15:17:06 -0700 To: dev@httpd.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org On Sep 24, 2009, at 2:11 PM, Guenter Knauf wrote: > Hi, > here's based on input from Rainer and R=FCdiger my last trial unless =20= > I get > further positive comments instead of disappointing ones ... > highlighted: > http://people.apache.org/~fuankg/testchecksum/testchecksums.sh.html > plaintext: > http://people.apache.org/~fuankg/testchecksum/testchecksums.sh.txt > with .sh extension for download: > http://people.apache.org/~fuankg/testchecksum/testchecksums.sh > > tested on: > - Linux (OpenSuSE) with openssl, gpg, md5sum / sha1sum > - FreeBSD (p.a.o) with openssl and md5 / sha1 > > it will most likely also work correctly on MacOSX. I get % sh testchecksums.sh fred Generating MD5/SHA1 checksum files ... openssl: creating md5 checksum file for fred.tar.gz ... openssl: creating sha1 checksum file for fred.tar.gz ... openssl: creating md5 checksum file for fred.tar.bz2 ... openssl: creating sha1 checksum file for fred.tar.bz2 ... openssl: creating md5 checksum file for fred-deps.tar.gz ... openssl: creating sha1 checksum file for fred-deps.tar.gz ... openssl: creating md5 checksum file for fred-deps.tar.bz2 ... openssl: creating sha1 checksum file for fred-deps.tar.bz2 ... testchecksums.sh: line 80: test: too many arguments testchecksums.sh: line 92: test: too many arguments My guess is that if test -x ${md5sum} -a ${sha1sum}; then won't work when md5sum or sha1sum is empty. Likewise for line 92. Though we probably don't even need those parts for roll.sh. ....Roy