From 4596a4adeb59a33e047279a57494af9367840f64 Mon Sep 17 00:00:00 2001 From: sjing Date: Mon, 17 Oct 2011 01:48:14 +0000 Subject: [PATCH] to support the upc compliers git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10783 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../IBMhpc/compilers/upc.otherpkgs.pkglist | 6 +++ .../share/xcat/IBMhpc/compilers/upc_license | 46 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc.otherpkgs.pkglist create mode 100644 xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc_license diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc.otherpkgs.pkglist b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc.otherpkgs.pkglist new file mode 100644 index 000000000..e9f82729a --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc.otherpkgs.pkglist @@ -0,0 +1,6 @@ +compilers/vac.upc.cmp +compilers/vac.upc.help +compilers/vac.upc.lib +compilers/vac.upc.man +compilers/vac.upc.rte +compilers/vac.upc.rte.lnk diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc_license b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc_license new file mode 100644 index 000000000..a1aa9feef --- /dev/null +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/upc_license @@ -0,0 +1,46 @@ +#!/bin/sh + +# +# Sample script to accept licenses for the IBM upc compilers +# For AIX: +# do nothing, license accepted with installp -Y flag +# For Linux: +# Assumes all compiler software has been installed + + +OS=`uname` +if [ $OS != "AIX" ]; then + cd $installroot/ + upc_script=`find opt/ibmcmp/upc -name new_install -print` + + if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then + # Being run from a stateful install postscript + if [ -n "$upc_script" ] ; then + # UPC prompts for a minimum of three questions + # on compute nodes and four on login nodes. + # You may need modify here accordingly. + (echo yes + sleep 5 + echo 1 + sleep 5 + echo yes) | $upc_script + fi + fi + + if [ $NODESETSTATE == "genimage" ]; then + # Being called from .postinstall script + # Assume we are on the same machine + if [ -n "$upc_script" ] ; then + # UPC prompts for a minimum of three questions + # on compute nodes and four on login nodes. + # You may need modify here accordingly. + (echo yes + sleep 5 + echo 1 + sleep 5 + echo yes) | chroot $installroot /$upc_script + fi + fi +fi + +