installbin.sh

来自「samba最新软件」· Shell 代码 · 共 41 行

SH
41
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?