Changeset fb68d23 for common/func_ICA.sh
- Timestamp:
- 04/09/2006 11:22:51 AM (18 years ago)
- Branches:
- experimental
- Children:
- 97520c9
- Parents:
- 02d1ae7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/func_ICA.sh
r02d1ae7 rfb68d23 4 4 wrt_ica_targets() { # 5 5 #----------------------------------# 6 local ICA_rebuild=$17 wrt_ ica_rebuild "$ICA_rebuild"8 wrt_iterations "$ ICA_rebuild"6 local system_rebuild=$1 7 wrt_system_rebuild "$system_rebuild" 8 wrt_iterations "$system_rebuild" 9 9 } 10 10 11 11 #----------------------------------# 12 wrt_ ica_rebuild() { #12 wrt_system_rebuild() { # 13 13 #----------------------------------# 14 local ICA_rebuild=$114 local system_rebuild=$1 15 15 ( 16 16 cat << EOF 17 ICA_rebuild: $ICA_rebuild17 system_rebuild: $system_rebuild 18 18 19 19 EOF … … 24 24 wrt_iterations() { # 25 25 #----------------------------------# 26 local ICA_rebuild=$126 local system_rebuild=$1 27 27 28 28 for ((N=1; N <= ITERATIONS ; N++)) ; do # Double parentheses, … … 36 36 @pushd logs && \\ 37 37 mkdir $ITERATION && \\ 38 mv $ ICA_rebuild $ITERATION && \\38 mv $system_rebuild $ITERATION && \\ 39 39 popd 40 @rm -f $ ICA_rebuild40 @rm -f $system_rebuild 41 41 @touch \$@ 42 42 … … 51 51 @pushd logs && \\ 52 52 mkdir iteration-last && \\ 53 cp $ ICA_rebuild iteration-last && \\53 cp $system_rebuild iteration-last && \\ 54 54 popd 55 55 @do_ica_work … … 65 65 @pushd logs && \\ 66 66 mkdir $ITERATION && \\ 67 mv $ ICA_rebuild $ITERATION && \\67 mv $system_rebuild $ITERATION && \\ 68 68 popd 69 @rm -f $ ICA_rebuild69 @rm -f $system_rebuild 70 70 @touch \$@ 71 71
Note:
See TracChangeset
for help on using the changeset viewer.