httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject [PATCH] 1.3 GuessOS - fix mishandling of slashes from uname -m
Date Tue, 13 Mar 2001 11:21:00 GMT
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...

Mime
View raw message