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