apply.sh
来自「apach加密模块」· Shell 代码 · 共 44 行
SH
44 行
#!/bin/sh#### apply.sh -- Apply a patch## Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved. ### parameterscookiestr="$1"cookiefile="$2"patchprg="$3"patchfile="$4"applydir="$5"prefix="$6"display="$7"if [ ".`grep $cookiestr $cookiefile`" = . ]; then cat $patchfile |\ $patchprg --forward --directory $applydir 2>&1 |\ tee config.log |\ egrep '^.Index:' | sed -e "s/.*Index: /$prefix patching: [FILE] /" |\ eval $display failed=0 if [ ".`grep $cookiestr $cookiefile`" = . ]; then failed=1 fi if [ ".`cd $applydir; find . -name '*.rej' -print`" != . ]; then failed=1 fi if [ ".$failed" = .1 ]; then echo "Error: Application of patch failed:" 1>&2 echo "-------------------------------------------------" 1>&2 tail config.log 1>&2 echo "-------------------------------------------------" 1>&2 exit 1 else rm -f config.log fielse cat $patchfile |\ egrep '^Index:' | sed -e "s/.*Index: /$prefix skipping: [FILE] /" |\ eval $displayfi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?