📄 updatedocall.sh
字号:
#! /bin/sh# /*********************** self documentation **********************/# UPDATEDOCALL - put self-docs in ../doc/Stripped## Usage: updatedocall ## Note: this shell uses updatedoc to update the database used by# suname and gendocs ## /**************** end self doc ********************************/# Copyright 1988 by Jack K. Cohen## $Author: john $# $Source: /usr/local/cwp/src/par/shell/RCS/updatedocall.sh,v $# $Revision: 1.13 $ ; $Date: 2006/07/10 22:01:54 $#set -x##################$############################################################# test for CWPROOT###############################################################################if 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=$CWPROOT/srcficmd=`basename $0`BIN=${CWPROOT}/binPATH=/bin:/usr/bin:/${BIN}echo "Updating the total CWP doc directory."echo "This wipes out the contents of the doc directory"echo "and takes about 30 min to complete."echo -n " Do you wish to continue [y/n]?"read RSPcase $RSP in y*|Y*) # continue echo "Proceeding with update" ;; *) # abort echo "Aborting update!" ; exit 1 ;;esacecho "updating doc directory--- takes about 30 minutes"echo " .... please standby"echoDOC=${CWPSRC}/doc# clear out all old docsrm -rf $DOC/Stripped/*rm -rf $DOC/TXT/*rm -rf $DOC/Headers/*SHELLS="cwp/shell par/shell psplot/shell su/shell "LIBS1="psplot/lib xplot/lib Xtcwp/lib Xmcwp/lib "LIBS2="su/lib cwputils tri/lib tetra/lib comp/dct/lib comp/dct/libutil"LIBS3="cwp/lib par/lib comp/dwpt/1d/lib comp/dwpt/2d/lib Mesa/lib "MAINS1="cwp/main par/main psplot/main comp/dct/main comp/dwpt/1d/main"MAINS2="xplot/main Xtcwp/main Xmcwp/main su/graphics/psplot su/graphics/xplot "MAINS3="su/main tri/main tri/graphics/psplot tetra/main xtri comp/dwpt/2d/main Mesa/main"MAINS4="3D/Suinvco3d "# do shellsfor i in $SHELLSdo updatedoc $i &done# do libsfor i in $LIBS2do updatedoc $idonefor i in $LIBS1do updatedoc $i &donefor i in $LIBS3do updatedoc $idonefor i in $MAINS1do updatedoc $idonefor i in $MAINS2do updatedoc $i &donefor i in $MAINS3 $MAINS4do updatedoc $i done# update master header fileupdateheadecho "... doc database updated "exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -