fixpaths

来自「OpenSSH 是 SSH (Secure SHell) 协议的免费开源实现。它」· 代码 · 共 23 行

TXT
23
字号
#!/bin/sh## fixpaths  - substitute makefile variables into text files# Usage: fixpaths -Dsomething=somethingelse ...die() {	echo $*	exit -1}test -n "`echo $1|grep -- -D`" || \	die $0: nothing to do - no substitutions listed!test -n "`echo $1|grep -- '-D[^=]\+=[^ ]\+'`" || \	die $0: error in command line arguments.test -n "`echo $*|grep -- ' [^-]'`" || \	die Usage: $0 '[-Dstring=replacement] [[infile] ...]'sed `echo $*|sed -e 's/-D\([^=]\+\)=\([^ ]*\)/-e s=\1=\2=g/g'`exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?