📄 rundemo.sh
字号:
#! /bin/sh# @(#)rundemo.sh 1.5 1/18/93 ERL# top level script for plot3d demo# check syntaxcase $# in1) # any output files go in directory specified by $1 EDEMO_TEMP=$1 ;;*) EDEMO_TEMP=$HOME/Edemo$$ echo "no temporary directory specified, will use $EDEMO_TEMP" ;;esac# create temp directory if necessary, check that it is writableif test ! -d $EDEMO_TEMPthen mkdir $EDEMO_TEMP 2> /dev/nullfitouch $EDEMO_TEMP/foo.$$ 2> /dev/nullif test -f $EDEMO_TEMP/foo.$$ then rm $EDEMO_TEMP/foo.$$ else echo "$0: can't create $EDEMO_TEMP or can't write in it; exiting. " exit 1fi# make sure we have full path for temp directorycur_dir=`pwd`cd $demo_tempdemo_temp=`pwd`cd $cur_dir# tell everyone where the temp directory is export EDEMO_TEMP# set various paths for ESPS and xwaves+EBASE=`get_esps_base`ESPS_MENU_PATH="./menus:$EBASE/lib/waves/menus"export ESPS_MENU_PATHESPS_INPUT_PATH="./files:$EDEMO_TEMP:$EBASE/lib/files"export ESPS_INPUT_PATHESPS_PARAMS_PATH="$EDEMO_TEMP:./params:$EBASE/lib/params"export ESPS_PARAMS_PATHWAVES_INPUT_PATH="./files:$EDEMO_TEMP:$EBASE/lib/waves/files"export WAVES_INPUT_PATHWAVES_MENU_PATH="./menus:$EBASE/lib/waves/menus"export WAVES_MENU_PATHWAVES_COMMAND_PATH="./wcommands:$EBASE/lib/waves/commands"export WAVES_COMMAND_PATHWAVES_COLORMAP_PATH="./colormaps:$EBASE/lib/waves/colormaps"export WAVES_COLORMAP_PATHWAVES_PROFILE_PATH="$EDEMO_TEMP:$EBASE/lib/waves"export WAVES_PROFILE_PATH# note, we put $EDEMO_TEMP on the path since play links and other # executables might go therePATH="$EDEMO_TEMP:./bin:$PATH"export PATHUSE_ESPS_COMMON=offexport USE_ESPS_COMMONESPS_VERBOSE=0export ESPS_VERBOSE# define a unique socket number for use by the demo'; from here on # in, both xwaves and send_xwaves will use this number. WAVES_PORT=`randport -S $$`export WAVES_PORT# put the $EDEMO_TEMP file in the .wave_pro so that it will be used for# output filessed -e s%@DEMO_TEMP@%$EDEMO_TEMP% files/wave_pro > $EDEMO_TEMP/wave_pro# start waves; # initialization is done via demoinit.WC as specified # in wave_proxwaves -WP 0 500 -w wave_pro -s &# now we put up a demo control panelmbuttons -q1 -X1 -Y 1 -w"Plot3d Demo" -i "plot3d" -b 1 plot3d.BM# after the user quits fbuttons, we kill xwaves+send_xwaves @demoquit.WC# Here we normally remove demo temp files, but there are none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -