syminst.sh
来自「远程桌面连接工具」· Shell 代码 · 共 91 行
SH
91 行
#!/bin/sh## syminst - install with a symbolic link back to the build tree## set DOITPROG to echo to test this scriptdoit="${DOITPROG-}"# put in absolute paths if you don't have them in your path; or use env. vars.lnprog="${LNPROG-ln -s}"rmprog="${RMPROG-rm}"instcmd="$lnprog"rmcmd="$rmprog -f"srcdir=`pwd`/src=""dst=""while [ x"$1" != x ]; do case $1 in -c) shift continue;; -m) shift shift continue;; -o) shift shift continue;; -g) shift shift continue;; -s) shift continue;; -DIR) srcdir=`echo $2 | sed 's;/\./;/;g'`/ shift shift continue;; *) if [ x"$src" = x ] then src=$1 else dst=$1 fi shift continue;; esacdoneif [ x"$src" = x ]then echo "syminst: no input file specified" exit 1fiif [ x"$dst" = x ]then echo "syminst: no destination specified" exit 1fi# if destination is a directory, append the input filename; if your system# does not like double slashes in filenames, you may need to add some logicif [ -d $dst ]then dst="$dst"/`basename $src`ficase $src in /*) srcdir="" instcmd=cp;;esac# get rid of the old one and mode the new one in$doit $rmcmd $dst$doit $instcmd $srcdir$src $dstexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?