Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 98807 invoked by uid 500); 13 Mar 2001 11:21:48 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 98785 invoked from network); 13 Mar 2001 11:21:46 -0000 Date: Tue, 13 Mar 2001 06:21:00 -0500 Message-Id: <200103131121.GAA20241@adsl-77-241-65.rdu.bellsouth.net> X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawickj@bellsouth.net using -f From: Jeff Trawick To: new-httpd@apache.org Subject: [PATCH] 1.3 GuessOS - fix mishandling of slashes from uname -m Reply-to: trawickj@bellsouth.net X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N When the MACHINE string has slashes, a binary distribution file name has slashes too, but that messes up binbuild.sh as well as any manual handling of the file. This simple change replaces any slashes in the MACHINE string with hyphens. Any concerns/suggestions before I commit? Index: GuessOS =================================================================== RCS file: /cvs/apache/apache-1.3/src/helpers/GuessOS,v retrieving revision 1.71 diff -u -r1.71 GuessOS --- GuessOS 2001/02/16 14:27:18 1.71 +++ GuessOS 2001/03/13 11:07:57 @@ -33,6 +33,8 @@ SYSTEM=`(uname -s) 2>/dev/null` || SYSTEM="unknown" VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown" +# Some HP machines have slashes. +MACHINE=`echo ${MACHINE}|sed -e 's/\//-/'` # Now test for ISC and SCO, since it is has a braindamaged uname. # -- Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...