build_all.bash

来自「实现地震射线追踪和反演的frotran程序」· BASH 代码 · 共 29 行

BASH
29
字号
#!/bin/bash## This script should make rayinvr and all other programs## Scott Pearse (scott.pearse@durham.ac.uk)echo -e "\n*************************************************************************\nThis script will make rayinvr and all the programs in all the directories\nYou will receive compilation warnings on stdout\n*************************************************************************\n"\rm */*.o >& /dev/nullcd    rayinvr;make rayinvr;make xrayinvrcd ../rayplot;make rayplot 2>& /dev/null;make xrayplotcd ../pltsyn ;make pltsyn ;make xpltsyn cd ../vmodel ;make vmodel ;make xvmodel cd ../tramp  ;make tramp  ;make xtramp  # Misc has no make filecd ../miscfor i in $(ls *.f); do echo -e "f77 $i -o $(echo $i | awk -F . '{print "../bin/"$1}')";f77 $i -o $(echo $i | awk -F . '{print "../bin/"$1}'); done# Finish up, remove objectsecho -e "\n*************************************************************************\nCleaning up\n"\rm */*.o >& /dev/nullecho -e "Finished!\nCompiled binaries are in ./bin\n*************************************************************************\n\n"

⌨️ 快捷键说明

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