#! /bin/sh mpe_pgm_name="`echo $0 | sed 's%.*/\([^/]*\)$%\1%g'`" # Determine if this is invoked from standalone MPE or MPICH2 case ${mpe_pgm_name} in mpe*) # if mpecc and mpefc, standalone MPE mpe_hpfx=" -" mpe_hpst=" " ;; mpi*) # if mpicc and mpif77/mpif90, MPICH2 mpe_hpfx=" -mpe=" mpe_hpst=" " ;; *) # Set unrecognized mpe_pgm_name as standalone MPE. mpe_hpfx=" -" mpe_hpst=" " ;; esac cat <. ${mpe_hpfx}log : MPE user-defined states logging. ${mpe_hpst} This links against -lmpe. ${mpe_hpfx}nolog : Nullify MPE user-defined states logging. ${mpe_hpst} This links against -lmpe_null. ${mpe_hpfx}help : Print this help page. EOF exit 1