📄 sudoc.sh
字号:
#! /bin/sh# /*********************** self documentation **********************/# SUDOC - get DOC listing for code## Usage: sudoc name## Note: Use this shell script to get selfdoc information for# codes labeled with and asterisk (*) or pound sign (#) in suname list # /**************** end self doc ********************************/#set -x# $Source: /usr/local/cwp/src/su/shell/RCS/sudoc.sh,v $# $Revision: 1.13 $ ; $Date: 1999/05/12 20:15:48 $# test for CWPROOTif test "${CWPROOT}" = ""then echo "The environment variable \"CWPROOT\" " echo "is not set in the user's working shell environment." echo "To set this variable in C-shell, use the command: " echo " setenv CWPROOT /your/cwp/root/path" echo "To set this variable in Bourne or Korn-shell, use the command:" echo " export CWPROOT=/your/cwp/root/path" ; exit 1fi################################################################################# test for CWPSRC, use value if set, define as $CWPROOT if not set# (CWPSRC allows one set of source code and documentation for multiple machines)################################################################################if test "${CWPSRC}" = ""thenCWPSRC=$CWPROOTfiROOT=${CWPROOT}SRC=${CWPSRC}/srcBIN=$ROOT/binSTRIP=$SRC/doc/StrippedPATH=${PATH}:${BIN}# test to see if user has a preferred PAGERif test "$PAGER" = "" then PAGE_PROGRAM=more else PAGE_PROGRAM=$PAGER ficase $# in1) #OK cd ${STRIP} NAME=`echo $1 | tr [A-Z] [a-z]` SHELLS="cwp/shell par/shell psplot/shell su/shell " LIBS=" cwp/lib par/lib psplot/lib xplot/lib tri/lib Xtcwp/lib \ Xmcwp/lib su/lib " MAINS="cwp/main par/main psplot/main xplot/main \ Xtcwp/main Xmcwp/main su/graphics/psplot su/main \ su/graphics/psplot su/graphics/xplot tri/main \ tri/graphics/psplot " EXISTS=no # loop through file extension types for i in $SHELLS $LIBS $MAINS do EXTENSION=`echo $i | sed 's/\//\./g'` if [ -f "$STRIP/$NAME.$EXTENSION" ] then echo "In $CWPROOT/src/$i: " $PAGE_PROGRAM ${STRIP}/$NAME.$EXTENSION EXISTS=yes fi done if [ "$EXISTS" = "no" ] then echo "There is no entry in the docs for \"$1\"" 2>&1 ; exit 1 fi;;*) # echo usage message echo "Usage: sudoc program_name"esacexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -