📄 installbin.sh
字号:
#!/bin/shINSTALLPERMS=$1BASEDIR=$2BINDIR=$3LIBDIR=$4VARDIR=$5shiftshiftshiftshiftshiftfor p in $*; do p2=`basename $p` echo Installing $p as $BINDIR/$p2 if [ -f $BINDIR/$p2 ]; then rm -f $BINDIR/$p2.old mv $BINDIR/$p2 $BINDIR/$p2.old fi cp $p $BINDIR/ chmod $INSTALLPERMS $BINDIR/$p2 # this is a special case, mount needs this in a specific location if [ $p2 = smbmount ]; then ln -sf $BINDIR/$p2 /sbin/mount.smbfs fidonecat << EOF======================================================================The binaries are installed. You may restore the old binaries (if therewere any) using the command "make revert". You may uninstall the binariesusing the command "make uninstallbin" or "make uninstall" to uninstallbinaries, man pages and shell scripts.======================================================================EOFexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -