Changeset 085370c in git for factory/fex/runfex
- Timestamp:
- Mar 11, 1998, 5:11:28 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0e083a79e79fdba1836c125232887812195dd9b8
- Parents:
- d636adca8e47219c329f1d05ef6a4b1712a88b48
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/fex/runfex
rd636ad r085370c 1 1 #! /home/schmidt/bin/bash 2 # $Id: runfex,v 1. 5 1998-02-02 11:00:54schmidt Exp $3 4 #{{{ docu 5 # 6 # runf xc- run factory example collection.2 # $Id: runfex,v 1.6 1998-03-11 16:11:28 schmidt Exp $ 3 4 #{{{ docu 5 # 6 # runfex - run factory example collection. 7 7 # 8 8 #}}} … … 130 130 # $1: options how to print data 131 131 # $2: default width to print data 132 # $3: name of example/collection 133 # $4: note on example/collection 132 134 # 133 135 # Global variables used: … … 139 141 typeset \ 140 142 options="$1" \ 143 name="$3" \ 144 note="$4" \ 141 145 colWidth 142 146 … … 149 153 while [ -n "$options" ]; do 150 154 case "$options" in 155 (*h*) 156 # do some pretty printing 157 if [ ${#name} -lt 7 ]; then 158 echo "$name: $note." 159 elif [ ${#name} -lt 15 ]; then 160 echo "$name: $note." 161 else 162 echo "$name: $note." 163 fi 164 options="${options//h/}" ;; 151 165 (*p*) echo "$algChar" 152 166 options="${options//p/}" ;; … … 338 352 if [ -n "$debugMode" ]; then 339 353 echo "skipping $exampleName" 340 else341 warn "skipping $exampleName"342 354 fi 343 355 return … … 423 435 424 436 # print table 425 printData "$algorithmTBOptions" "$TBColWidth" 437 printData "$algorithmTBOptions" "$TBColWidth" "$exampleName" "$exampleNote" 426 438 } 427 439 #}}} … … 435 447 # 436 448 # runROOptions: options for RO table. Read from commandline. 437 # runNote: comment on run. Read from commandline.438 449 # rawCollectionName: collection name with full path 439 450 # … … 445 456 #}}} 446 457 typeset runROOptions="" 447 typeset runNote=""448 458 typeset rawCollectionName="" 449 459 … … 451 461 # read options 452 462 typeset opt 453 while getopts " n:a:c:C:t:r:d" opt; do463 while getopts "a:c:C:t:r:d" opt; do 454 464 case "$opt" in 455 (n) runNote="$OPTARG" ;;456 465 (a) runOptions="$runOptions -a$OPTARG" ;; 457 466 (c) runOptions="$runOptions -c$OPTARG" ;; … … 518 527 options="${options//tcrd/}" 519 528 520 printData "$options" "$ROColWidth" 529 printData "$options" "$ROColWidth" "$collectionName" "$collectionNote" 521 530 } 522 531 fi
Note: See TracChangeset
for help on using the changeset viewer.