From 8e4f7329dcc65bdf25d47c161f3171339881fa2e Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Wed, 23 Jun 2010 01:02:15 +0000 Subject: [PATCH] Changed the builddep.sh script to check perl version instead of os level git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6583 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- builddep.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/builddep.sh b/builddep.sh index c3274fa0b..15a96da80 100755 --- a/builddep.sh +++ b/builddep.sh @@ -94,8 +94,13 @@ if [ "$OSNAME" == "AIX" ]; then # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html # xCAT on AIX - prerequisite install script cd `dirname $0` -SHORTVER=`oslevel|cut -d. -f 1,2` -rpm -Uvh $SHORTVER/*.rpm +PERLVER=`perl -v|grep 'This is perl'|cut -d' ' -f 4` +if [ "$PERLVER" == "v5.8.2" ]; then + OSVER='5.3' +else + OSVER='6.1' +fi +rpm -Uvh $OSVER/*.rpm EOF chmod +x instoss