📄 runme
字号:
#!/bin/sh## This script is used to compile yabasic#echo # remove files, that might interfereecho "===output of 'make clean'" >runme.logmake clean >>runme.log 2>&1rm -f ./yabasic config.cache config.log config.status# get version from yabasic.hecho "===Version from configure" >>runme.loggrep "VERSION=" configure >>runme.log 2>&1# get usernameecho "===Output of who" >>runme.logwho -m >>runme.log 2>&1# get host informationecho "===Output of uname" >>runme.loguname >>runme.log 2>&1# list current fileecho "===Files in current directory" >>runme.logls -l >>runme.log 2>&1# preset returncodeRC=0echo "===Running configure ..." | tee -a runme.log | tr -d =./configure >>runme.log 2>&1# sucess ?if [ $? -eq 0 ]then echo "===Trying to make yabasic ..." | tee -a runme.log | tr -d = make >>runme.log 2>&1 # sucess ? if [ $? -eq 0 ] then echo "===Testing yabasic ..." | tee -a runme.log | tr -d = make check >>runme.log 2>&1 # sucess ? if [ $? -eq 0 ] then echo echo "===SUCESS, you may now start yabasic from this directory" | tee -a runme.log | tr -d = echo "===or install it in system by typing 'make install' (need to be root)" | tee -a runme.log | tr -d = echo else echo echo "===FAILURE, the tests have failed" | tee -a runme.log | tr -d = echo "===yabasic has not been built properly !" | tee -a runme.log | tr -d = echo RC=1 fi else echo echo "===FAILURE, could not make yabasic !" | tee -a runme.log | tr -d = echo RC=2 fielse echo echo "===FAILURE, could not configure yabasic" | tee -a runme.log | tr -d = echo RC=3fi# append config.log to runme.logecho "===config.log:" >>runme.logtouch config.logcat config.log >>runme.log 2>&1exit $RC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -