📄 mpecheckinstall.in
字号:
#! /bin/sh## This script has to be built by configure.## This is a script to install MPE Profiling Environment. It can be invoked with## make installcheck ( if you used -prefix at configure time )## or,## make installcheck PREFIX=Path_to_the_installation_of_MPE## in the top-level MPE __build__ directory which could be the same# or different from the source directory#MAKE="@MAKE@"# Location of sources# top_srcdir=@top_srcdir@top_srcdir=@top_srcdir_abs@ # in absolute path# Installation directories: Default paths (set at configure time)prefix=@prefix@exec_prefix=@exec_prefix@includedir=@includedir@libdir=@libdir@bindir=@bindir@sbindir=@sbindir@datadir=@datadir@sysconfdir=@sysconfdir@# Assume PROF_LIBNAME=MPE_LIBNAME.PROF_LIBNAME=@MPE_LIBNAME@CPRP="@CPRP@"RM="@RM@"LN_S="@LN_S@"MPI_IMPL=@MPI_IMPL@MPE_BUILD_FORTRAN2C=@MPE_BUILD_FORTRAN2C@Show=evalprefix_override=0make_target=linktestfor arg in "$@" ; do case "$arg" in -prefix=*) prefix=`echo $arg | sed -e 's/-prefix=//g'` if [ "$prefix" != "@prefix@" ] ; then prefix_override=1 fi ;; -t) Show=echo ;; -run) make_target=runtest ;; -run=*) make_target=runtest # Added extra quotes '\"' and '\"' so -run= can accept blanks. make_mperun="MPERUN=\"`echo $arg | sed -e 's/-run=//g'`\"" ;; -echo) set -x ;; -help|-u|-usage|-h)cat <<EOFCheck MPE installation at $prefix.-prefix=path - Destination directory.-t - Try only; do NO actual checking.-run - Do installation runtests instead of linktests with MPERUN="$bindir/mpiexec -n 4".-run=<mpiexec_cmd> - Do installation runtests instead of linktests with MPERUN=<mpiexec_cmd>.EOF exit 1 ;; *) # Silently skip empty arguments (these can occur on # some systems and within some scripts; they are # harmless) if [ -n "$arg" ] ; then echo "mpecheckinstall: Unrecognized argument $arg ." exit 1 fi ;; esacdoneif [ "$SHELL_ECHO" = "on" ] ; then set -xfi# Check if installation location is setif [ ! -n "$prefix" ] ; then echo "Set an installation location with -prefix=<location> ." exit 1fi# If the prefix was set, we want to override these choicesif [ "$prefix_override" = 1 ] ; then includedir=$prefix/include libdir=$prefix/lib bindir=$prefix/bin sbindir=$prefix/sbin datadir=$prefix/sharefiif [ ! -s $libdir/lib${PROF_LIBNAME}.a ] ; then echo "Could not find $libdir/lib${PROF_LIBNAME}.a !" echo "You must install MPE before checking the installation!" echo "Try to do \"make install\" or \"mpeinstall\" first." exit 1fi# Set up Examples directory for the MPE Logging programsfor pkg in logging graphics collchk ; do examplesdir=$datadir/examples_${pkg} if [ -f $examplesdir/Makefile ] ; then echo "Running installation $make_target for C $pkg program..." $Show "( cd $examplesdir && $MAKE ${make_target}_C $make_mperun )" if test "$MPE_BUILD_FORTRAN2C" = "yes" ; then echo "Running installation $make_target for Fortran $pkg program..." $Show "( cd $examplesdir && $MAKE ${make_target}_F77 $make_mperun )" fi fidone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -