Commit e40cbee6 authored by hkrishna's avatar hkrishna
Browse files

modified loop counter to be bv_i

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@16531 18c085ea-50e0-402c-830e-de6fd14e8384
parent dfb4bd11
......@@ -217,15 +217,15 @@ bv_visit_initialize
#
#initialize required libraries..
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${reqlibs[$i]}_initialize"
initializeFunc="bv_${reqlibs[$bv_i]}_initialize"
$initializeFunc
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${optlibs[$i]}_initialize"
initializeFunc="bv_${optlibs[$bv_i]}_initialize"
$initializeFunc
done
......@@ -324,15 +324,15 @@ if [[ "$VISIT_FILE" != "" ]] ; then
ON_USE_VISIT_FILE="on"
fi
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${reqlibs[$i]}_info"
initializeFunc="bv_${reqlibs[$bv_i]}_info"
$initializeFunc
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${optlibs[$i]}_info"
initializeFunc="bv_${optlibs[$bv_i]}_info"
$initializeFunc
done
......@@ -815,9 +815,9 @@ if [[ "$DO_OPTIONAL" == "yes" && "$GRAPHICAL" == "yes" ]] ; then
case $retval in
0)
#disable all..
for (( i=0; i < ${#iolibs[*]}; ++i ))
for (( bv_i=0; bv_i < ${#iolibs[*]}; ++bv_i ))
do
initializeFunc="bv_${iolibs[$i]}_disable"
initializeFunc="bv_${iolibs[$bv_i]}_disable"
$initializeFunc
done
......@@ -848,9 +848,9 @@ fi
#TODO: Update Optional2
if [[ "$DO_OPTIONAL2" == "yes" && "$GRAPHICAL" == "yes" ]] ; then
add_checklist_vars=""
for (( i=0; i < ${#advancedlibs[*]}; ++i ))
for (( bv_i=0; bv_i < ${#advancedlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${advancedlibs[$i]}_graphical"
initializeFunc="bv_${advancedlibs[$bv_i]}_graphical"
output_str="$($initializeFunc)"
add_checklist_vars=${add_checklist_vars}" "${output_str}
done
......@@ -903,15 +903,15 @@ fi
## At this point we are after the command line and the visual selection
#dry run, don't execute anything just run the enabled stuff..
if [[ $VISIT_DRY_RUN -eq 1 ]]; then
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${reqlibs[$i]}_dry_run"
initializeFunc="bv_${reqlibs[$bv_i]}_dry_run"
$initializeFunc
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initializeFunc="bv_${optlibs[$i]}_dry_run"
initializeFunc="bv_${optlibs[$bv_i]}_dry_run"
$initializeFunc
done
......@@ -1019,16 +1019,16 @@ export VISITDIR=${VISITDIR:-$(pwd)}
if [[ "$DO_REQUIRED_THIRD_PARTY" == "yes" ]] ; then
for (( i=0; i<${#thirdpartylibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#thirdpartylibs[*]}; ++bv_i ))
do
initializeFunc="bv_${thirdpartylibs[$i]}_enable"
initializeFunc="bv_${thirdpartylibs[$bv_i]}_enable"
$initializeFunc
done
if [[ "$DO_DBIO_ONLY" == "yes" ]]; then
#disable all non dbio libraries
for (( i=0; i<${#nodbiolibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#nodbiolibs[*]}; ++bv_i ))
do
initializeFunc="bv_${nodbiolibs[$i]}_disable"
initializeFunc="bv_${nodbiolibs[$bv_i]}_disable"
$initializeFunc
done
fi
......@@ -1112,18 +1112,18 @@ fi
#
echo "building required libraries"
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
cd "$START_DIR"
initializeFunc="bv_${reqlibs[$i]}_build"
initializeFunc="bv_${reqlibs[$bv_i]}_build"
$initializeFunc
done
echo "building optional libraries"
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
cd "$START_DIR"
initializeFunc="bv_${optlibs[$i]}_build"
initializeFunc="bv_${optlibs[$bv_i]}_build"
$initializeFunc
done
......
......@@ -1222,15 +1222,15 @@ function build_hostconf
#icet
#itaps
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initialize="bv_${reqlibs[$i]}_host_profile"
initialize="bv_${reqlibs[$bv_i]}_host_profile"
$initialize
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initialize="bv_${optlibs[$i]}_host_profile"
initialize="bv_${optlibs[$bv_i]}_host_profile"
$initialize
done
echo >> $HOSTCONF
......@@ -1280,15 +1280,15 @@ printvariables () {
printf "%s%s\n" "SVNREVISION=" "${SVNREVISION}"
bv_visit_print
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initialize="bv_${reqlibs[$i]}_print"
initialize="bv_${reqlibs[$bv_i]}_print"
$initialize
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initialize="bv_${optlibs[$i]}_print"
initialize="bv_${optlibs[$bv_i]}_print"
$initialize
done
}
......@@ -1322,15 +1322,15 @@ usage () {
bv_visit_print_usage
for (( i=0; i<${#reqlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
initialize="bv_${reqlibs[$i]}_print_usage"
initialize="bv_${reqlibs[$bv_i]}_print_usage"
$initialize
done
for (( i=0; i<${#optlibs[*]}; ++i ))
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
initialize="bv_${optlibs[$i]}_print_usage"
initialize="bv_${optlibs[$bv_i]}_print_usage"
$initialize
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment