compile
来自「daemontools-0.76.tar.gz是在linux环境下自动监控进程的」· 代码 · 共 29 行
TXT
29 行
#!/bin/sh -eumask 022test -d package || ( echo 'Wrong working directory.'; exit 1 )test -d src || ( echo 'Wrong working directory.'; exit 1 )here=`env - PATH=$PATH pwd`mkdir -p compile commandtest -r compile/home || echo $here > compile/hometest -h compile/src || ln -s $here/src compile/srcecho 'Linking ./src/* into ./compile...'for i in `ls src`do test -h compile/$i || ln -s src/$i compile/$idoneecho 'Compiling everything in ./compile...'( cd compile; exec make )echo 'Copying commands into ./command...'for i in `cat package/commands`do rm -f command/$i'{new}' cp -p compile/$i command/$i'{new}' mv -f command/$i'{new}' command/$idone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?