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
This commit is contained in:
bp-sawyers 2010-06-23 01:02:15 +00:00
parent 7c92ec0bd1
commit 8e4f7329dc

View File

@ -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