File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ found_target=0
7979current_target=" "
8080in_compiler=0
8181in_linker=0
82- in_extensions =0
82+ ignore_nest_count =0
8383compiler_command_line=()
8484linker_command_line=()
8585output_executable_name=" "
@@ -88,10 +88,12 @@ object_output_dir=""
8888files=()
8989for(( i= 0 ;i< ${# a[@]} ;i++ )) ; do
9090 line=" ${a[i]} "
91- if [[ " $line " =~ ' </Extensions>' ]]; then
92- in_extensions=0
93- elif [[ " $line " =~ ' <Extensions>' ]] || (( in_extensions)) ; then
94- in_extensions=1
91+ if [[ " $line " =~ ' </Extensions>' || " $line " =~ ' </VirtualTargets>' ]]; then
92+ ignore_nest_count=$(( ignore_nest_count - 1 ))
93+ elif [[ " $line " =~ ' <Extensions>' || " $line " =~ ' <VirtualTargets>' ]]; then
94+ ignore_nest_count=$(( ignore_nest_count + 1 ))
95+ elif (( ignore_nest_count)) ; then
96+ :
9597 elif [[ " $line " =~ ' </Target>' ]]; then
9698 current_target=" "
9799 elif [[ " $line " =~ ' <Target title="' (.* )' ">' ]]; then
You can’t perform that action at this time.
0 commit comments