installman.sh
来自「samba最新软件」· Shell 代码 · 共 31 行
SH
31 行
#!/bin/shMANDIR=$1shift 1MANPAGES=$*for I in $MANPAGESdo SECTION=`echo $I | grep -o '.$'` DIR="$MANDIR/man$SECTION" if [ ! -d "$DIR" ] then mkdir "$DIR" fi BASE=`basename $I` echo "Installing manpage \"$BASE\" in $DIR" cp $I $DIRdonecat << EOF======================================================================The man pages have been installed. You may uninstall them using the commandthe command "make uninstallman" or make "uninstall" to uninstall binaries,man pages and shell scripts.======================================================================EOFexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?