📄 install
字号:
#! /bin/sh## Install the section 5 manual pages#if test x$MANDIR = x then echo MANDIR macro not defined, check install scripts or seek help exit 1fiif test ! -d $MANDIR then echo $MANDIR does not exist, check install scripts or seek help exit 1fiif test ! -d $MANDIR/man5 then echo $MANDIR/man5 does not exist, check install scripts or seek help exit 1fiif test x$MANMOD = x then MANMOD=0640fiecho Comparing dates of .5 files here and in $MANDIR/man5echo This might take a while....for name in *.5* do if $BINDIR/newer $name $MANDIR/man5/$name then echo Updating $name... set -x rm -f $MANDIR/man5/$name sed "s;\\\$MANDIR\\\$;$MANDIR;" $name >$MANDIR/man5/$name chmod $MANMOD $MANDIR/man5/$name set +x fidonecd $MANDIR/man5echo "Making duplicates..."echo "First removing files with .so in them"LINK='ln -s'files=`grep -l '^.so' *`if test "x$files" != xthen echo "zapping these files..." echo $files rm $filesfiecho "Now removing existing files that are links..."find . -type l -exec rm {} \;echo "Making links..."set -x$LINK fea.5t FEA.5t$LINK feasd.5t FEASD.5texit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -