From: Colin Watson Date: Fri, 31 May 2002 17:34:06 +0000 (+0100) Subject: archname glitch on HP-UX/IA64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=94c7f405257e30963cbcb003a8090b12cb73506e;p=p5sagit%2Fp5-mst-13.2.git archname glitch on HP-UX/IA64 Message-ID: <20020531163406.GA10401@zeus.com> p4raw-id: //depot/perl@16928 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index 1eaf249..1cd190e 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -18,8 +18,8 @@ if [ "$xxOsRevMajor" -ge 10 ]; then # up to date with new CPU/OS releases. xxcpu=`getconf CPU_VERSION`; # Get the number. xxcpu=`printf '0x%x' $xxcpu`; # convert to hex - archname=`sed -n -e "s/^#[ \t]*define[ \t]*CPU_//p" /usr/include/sys/unistd.h | - sed -n -e "s/[ \t]*$xxcpu[ \t].*//p" | + archname=`sed -n -e "s/^#[[:space:]]*define[[:space:]]*CPU_//p" /usr/include/sys/unistd.h | + sed -n -e "s/[[:space:]]*$xxcpu[[:space:]].*//p" | sed -e s/_RISC/-RISC/ -e s/HP_// -e s/_/./ -e "s/[[:space:]]*//g"`; else # This system is running <= 9.x