runconfig.sh

来自「xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本」· Shell 代码 · 共 90 行

SH
90
字号
#!/bin/sh######################################################################## File:		runconfig.sh## Purpose:	Script to determine most options.  User specifies rest.## Version:	$Id: runconfig.sh,v 1.1 2001/09/06 14:14:55 cary Exp $## XGRAFIX######################################################################### Find location of this file and, hence, configure#shfile=$0shfiledir=`dirname $shfile`lineopts="$*"haveprefix=`echo $lineopts | grep -- --prefix=`# echo lineopts = $lineopts## Determine the host#if [ -f /usr/ucb/hostname ]; then  hostnm=`/usr/ucb/hostname`else  hostnm=`hostname`fi## Look for seaborg#isseaborg=`echo $hostnm | grep s00`if test "$isseaborg"; then hostnm=seaborg.nersc.gov; fiecho host is $hostnmecho "Building double precision? (y/n) "read dblif test "$dbl" = y; then  echo Building in double precision  prec="--with-SCALAR=double"else  echo Building in single precision  prec="--with-SCALAR=float"fiecho## Known options#case $hostnm in  mcurie | mcurie.nersc.gov)    echo assuming host is mcurie.nersc.gov    confopts="--with-CXX=CC --with-CC=cc $prec"    if test ! "$haveprefix"; then       confopts="$confopts --prefix=$HOME/unicos2.0"    fi    ;;  *.txcorp.com | *.colorado.edu)    confopts="$prec"    if test ! "$haveprefix"; then       confopts="$confopts --prefix=/usr/local/xgrafix"    fi    ;;esacconfopts="$confopts $lineopts"## Allow additional options#echo configure options: $confoptsechoecho "Other options (e.g., --enable-optimize)?  Or type \"quit\" to quit."read otheroptsif test "$otheropts" = quit; then exit; ficonfopts="$confopts $otheropts"## Will now run configure#cmd="$shfiledir/configure $confopts"echo $cmd$cmd

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?