File tree Expand file tree Collapse file tree 4 files changed +28
-12
lines changed
Expand file tree Collapse file tree 4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -472,13 +472,17 @@ jobs:
472472 export RUNALL="NO"
473473 if [ "$NUMCHANGEDCOMPS" != "0" ];
474474 then
475- if [ "$NUMCHANGEDCOMPS" -lt "10 " ];
475+ if [ "$NUMCHANGEDCOMPS" -lt "20 " ];
476476 then
477477 for comp in $CHANGEDCOMPS;
478478 do
479479 echo Finding instruments matching component $comp
480- MATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
481- export COMPILIST=`echo $COMPILIST $MATCH`
480+ NUMMATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
481+ if [ "$NUMMATCH" -gt "0" ];
482+ then
483+ MATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
484+ export COMPILIST=`echo $COMPILIST $MATCH`
485+ fi
482486 done
483487 else
484488 export RUNALL="YES"
@@ -492,7 +496,7 @@ jobs:
492496 echo $CHANGEDINSTR
493497 echo ----
494498 cd -
495- if [ "$NUMCHANGEDINSTR" -gt "10 " ];
499+ if [ "$NUMCHANGEDINSTR" -gt "20 " ];
496500 then
497501 export RUNALL="YES"
498502 fi
Original file line number Diff line number Diff line change @@ -232,8 +232,12 @@ jobs:
232232 for comp in $CHANGEDCOMPS;
233233 do
234234 echo Finding instruments matching component $comp
235- MATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
236- export COMPILIST=`echo $COMPILIST $MATCH`
235+ NUMMATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
236+ if [ "$NUMMATCH" -gt "0" ];
237+ then
238+ MATCH=`find mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
239+ export COMPILIST=`echo $COMPILIST $MATCH`
240+ fi
237241 done
238242 else
239243 export RUNALL="YES"
Original file line number Diff line number Diff line change @@ -405,13 +405,17 @@ jobs:
405405 export RUNALL="NO"
406406 if [ "$NUMCHANGEDCOMPS" != "0" ];
407407 then
408- if [ "$NUMCHANGEDCOMPS" -lt "10 " ];
408+ if [ "$NUMCHANGEDCOMPS" -lt "20 " ];
409409 then
410410 for comp in $CHANGEDCOMPS;
411411 do
412412 echo Finding instruments matching component $comp
413- MATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
414- export COMPILIST=`echo $COMPILIST $MATCH`
413+ NUMMATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
414+ if [ "$NUMMATCH" -gt "0" ];
415+ then
416+ MATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
417+ export COMPILIST=`echo $COMPILIST $MATCH`
418+ fi
415419 done
416420 else
417421 export RUNALL="YES"
@@ -425,7 +429,7 @@ jobs:
425429 echo $CHANGEDINSTR
426430 echo ----
427431 cd -
428- if [ "$NUMCHANGEDINSTR" -gt "10 " ];
432+ if [ "$NUMCHANGEDINSTR" -gt "20 " ];
429433 then
430434 export RUNALL="YES"
431435 fi
Original file line number Diff line number Diff line change @@ -213,8 +213,12 @@ jobs:
213213 for comp in $CHANGEDCOMPS;
214214 do
215215 echo Finding instruments matching component $comp
216- MATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
217- export COMPILIST=`echo $COMPILIST $MATCH`
216+ NUMMATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
217+ if [ "$NUMMATCH" -gt "0" ];
218+ then
219+ MATCH=`find mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | xargs -n1 basename | sed s/\.instr//g | xargs echo`
220+ export COMPILIST=`echo $COMPILIST $MATCH`
221+ fi
218222 done
219223 else
220224 export RUNALL="YES"
You can’t perform that action at this time.
0 commit comments