#!/bin/sh

# 
# Sample script to accept licenses for the IBM vacpp compilers
# For Linux:
#    Assumes all compiler software has been installed

OS=`uname`
if [ $OS != "AIX" ]; then
    cd $installroot/
    vacpp_script=`find opt/ibmcmp/vacpp -name new_install -print`

    if [ -n $installroot ]; then
        #  Being run from a stateful install postscript or stateless postbootscript.
        if [ -n "$vacpp_script" ] ; then
            echo 1 | chroot $installroot /$vacpp_script
        fi
    else
        #  Being run from a stateful install postscript postbootscript.
        if [ -n "$vacpp_script" ] ; then
           echo 1 | $vacpp_script
        fi
    fi
fi  


