📄 rundemo.sh
字号:
#! /bin/sh # top level script for the wave+ INTRO demo#@(#)rundemo.sh 1.6 12/1/92 ERL# check syntaxcase $# in1) # any output files go in directory specified by $1 demo_temp=$1 ;;0) demo_temp=/usr/tmp/Edemo$$ echo "No temporary directory specified, will use $demo_temp" ;;*) echo "Specify only one writable directory for output files." echo "rundemo exiting." exit 1 ;;esac# create temp directory if necessary, check that it is writableif test ! -d $demo_tempthen mkdir $demo_temp 2> /dev/nullfitouch $demo_temp/foo.$$ 2> /dev/nullif test -f $demo_temp/foo.$$ then rm $demo_temp/foo.$$ else echo "$0: can't create $demo_temp or can't write in it; exiting. " exit 1fi# Put demo_temp in the environmentexport demo_temp# make sure we have full path for temp directorycur_dir=`pwd`cd $demo_tempdemo_temp=`pwd`cd $cur_dir# first, 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:$demo_temp:$EBASE/lib/files"export ESPS_INPUT_PATHESPS_PARAMS_PATH="$demo_temp:./params:$EBASE/lib/params"export ESPS_PARAMS_PATHWAVES_INPUT_PATH="./files:$demo_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="$demo_temp:$EBASE/lib/waves"export WAVES_PROFILE_PATHPATH=$demo_temp:./bin:$PATHexport 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 $demo_temp file in the wave_pro so that it will be used for# output filessed -e s%@DEMO_TEMP@%$demo_temp% files/wave_pro > $demo_temp/wave_pro# start waves # initialization for demo is done via xw_init.WC as specified # in wave_pro# wtry.WC puts up initial displaysxwaves -w wave_pro -s wtry.WC &# next sleep is used to make text come up on topsleep 4xtext -Wp 5 540 -F help/inter_waves.doc -t "waves+ INTRO Demo" -i "Intro Help" &exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -