📄 compile
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -