[Ocfs2-tools-commits] manish commits r227 - trunk
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Sep 13 13:48:30 CDT 2004
Author: manish
Date: 2004-09-13 13:48:28 -0500 (Mon, 13 Sep 2004)
New Revision: 227
Modified:
trunk/toolsarch.guess
Log:
Tighten arch guessing
Modified: trunk/toolsarch.guess
===================================================================
--- trunk/toolsarch.guess 2004-09-13 18:37:18 UTC (rev 226)
+++ trunk/toolsarch.guess 2004-09-13 18:48:28 UTC (rev 227)
@@ -2,6 +2,15 @@
srcdir=$1
+if test -f /etc/redhat-release ; then
+ RPMARCH="`rpm -qf /etc/redhat-release --queryformat \"%{ARCH}\"`"
+
+ if test -n "$RPMARCH" -a "$RPMARCH" != "noarch" ; then
+ echo $RPMARCH
+ exit 0
+ fi
+fi
+
host_alias=`$srcdir/config.guess`
host=`$srcdir/config.sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
@@ -13,10 +22,12 @@
i486|i586|i686|i786|k6|k7)
echo "i386"
;;
- powerpc64)
+ ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
echo "ppc"
;;
*)
echo "error"
;;
esac
+
+exit 0
More information about the Ocfs2-tools-commits
mailing list