#!/bin/sh # this script expects the pgCC command (or a wrapper to pgCC, e.g. mpiCC) # and returns the path of the pgCC system libraries LIBPATH=`$1 -dryrun 2>&1 | grep "\/\.pg" | head -1 | awk '{ print $3} '` LIBPATH=$LIBPATH"TermX" LIBPATH=`echo $LIBPATH | sed 's/bin\/\.pg.*TermX/lib/g'` echo $LIBPATH