我想知道是否可以编写一个执行以下操作的bash脚本:
制作第一个程序
编译并执行第一个程序。比它等到这个程序完成然后执行:
制作第二个程序
如何编写bash脚本以便在终端中运行?
答案 0 :(得分:2)
#!/bin/bash
make firstprogram; make secondprogram
答案 1 :(得分:1)
您需要使用等待命令
<div class="custom-dd dd dd-nodrag" id="nestable_list_1">
<ol class="dd-list">
@for(skill <- skillList) {
<li class="dd-item">
<div class="dd-handle dd-nodrag row">
<span class="dd-nodrag" id="content_@skill.getCleanUri()"> @skill.getLabel() </span>
</div>
<ol class="dd-list">
@for((child, indexChild) <- skill.getChildrenList().zipWithIndex) {
<li class="dd-item" data-id="@indexChild">
<div class="dd-handle dd-nodrag row">
<span id="content_@child.getCleanUri()"> @child.getLabel() </span>
</div>
<ol class="dd-list">
@for((grandChild, indexGrandChild) <- child.getChildrenList().zipWithIndex) {
<li class="dd-item" data-id="@indexGrandChild">
<div class="dd-handle dd-nodrag row">
<span id="content_@grandChild.getCleanUri()"> @grandChild.getLabel() </span>
</div>
</li>
}
<div class="text-left addNew" id="meta-@index">
<span>
<button class="btn btn-icon w-xs plusBtn
btn-primary waves-effect waves-light toggleButton" data-toggle="modal"
data-target="#custom-width-modal"> <i class="fa fa-plus" aria-hidden="true"></i>
</button>
</span>
</div>
@(index = index + 1)
</ol>
</li>
}
</ol>
</li>
}
</ol>