File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 6868# assumption will not be properly overridden in the melting pot!
6969#
7070# Author: Curtis Rueden
71- # Dependencies: git, mvn, xmllint
7271# ============================================================================
7372
7473# -- Functions --
@@ -96,6 +95,19 @@ unknownArg(){
9695 usage=1
9796}
9897
98+ checkPrereqs (){
99+ while [ $# -gt 0 ]
100+ do
101+ which $1 > /dev/null 2> /dev/null
102+ test $? -ne 0 && echo " Missing prerequisite: $1 " && exit 255
103+ shift
104+ done
105+ }
106+
107+ verifyPrereqs (){
108+ checkPrereqs git mvn xmllint
109+ }
110+
99111parseArguments (){
100112while [ $# -gt 0 ]
101113do
@@ -531,6 +543,7 @@ meltDown(){
531543
532544# -- Main --
533545
546+ verifyPrereqs
534547parseArguments $@
535548createDir " $outputDir "
536549meltDown " $project "
You can’t perform that action at this time.
0 commit comments