Changeset 936 for palm/trunk/SCRIPTS
- Timestamp:
- Jun 25, 2012 1:15:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r935 r936 135 135 # 05/06/12 - Bjoern- bugfixes for execution of login_init_cmd 136 136 # 18/06/12 - Siggi - option -v (silent mode) added 137 # 25/06/12 - Siggi - option -K (block conditions) added 137 138 138 139 139 140 # VARIABLE DECLARATIONS + DEFAULT VALUES 141 block_conditions=none 142 block_conditions_found=false 140 143 compile_utility_programs=false 141 144 config_file=.mrun.config … … 182 185 183 186 # READ SHELLSCRIPT-OPTIONS 184 while getopts :c:h: m:s:uv option187 while getopts :c:h:K:m:s:uv option 185 188 do 186 189 case $option in 187 190 (c) config_file=$OPTARG;; 188 191 (h) host=$OPTARG;; 192 (K) block_conditions=$OPTARG;; 189 193 (m) makefile=$OPTARG;; 190 194 (s) suf=$OPTARG;; … … 256 260 fi 257 261 262 263 # determine the block conditions 264 if [[ $block_conditions != none ]] 265 then 266 block_condition1=`echo $block_conditions | cut -d" " -f1` 267 block_condition2=`echo $block_conditions | cut -d" " -f2` 268 if [[ "$block_condition2" = "$block_condition1" ]] 269 then 270 block_condition2="" 271 fi 272 echo "*** block conditions = 1:\"$block_condition1\" 2:\"$block_condition2\"" 273 fi 258 274 259 275 … … 484 500 (( ih = ih + 1 )) 485 501 486 # REMOTE-RECHNER UND UEBERSETZUNGS-VERSION FESTSTELLEN487 # NUR WEITERMACHEN, WENN ENTSPRECHENDER REMOTE-RECHNER MITTELS488 # SHELLSCRIPT-OPTION AUCH AUSGEWAEHLT WURDE502 # determine remote host and conditions for the respective block 503 # continue, only if this host has been chosen via -h option and if 504 # conditions have been chosen via -K option 489 505 remote_host_string=`echo ${hostline[$ih]} | cut -d" " -s -f3-` 490 506 remote_host=`echo $remote_host_string | cut -d" " -f1` … … 500 516 else 501 517 condition2=`echo $remote_host_string | cut -d" " -s -f3` 518 fi 519 520 if [[ $block_conditions != none ]] 521 then 522 if [[ "$condition1" != "$block_condition1" || "$condition2" != "$block_condition2" ]] 523 then 524 continue 525 fi 526 block_conditions_found=true 502 527 fi 503 528 … … 1500 1525 fi 1501 1526 1527 if [[ "$block_conditions" != none && $block_conditions_found = false ]] 1528 then 1529 printf "\n +++ block conditions \"$block_conditions\" not found for host \"$host\"" 1530 fi 1502 1531 1503 1532
Note: See TracChangeset
for help on using the changeset viewer.