Changeset 085370c in git for factory/fex/runfex


Ignore:
Timestamp:
Mar 11, 1998, 5:11:28 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0e083a79e79fdba1836c125232887812195dd9b8
Parents:
d636adca8e47219c329f1d05ef6a4b1712a88b48
Message:
***** merge from branch `factory-gcd' to main trunk


git-svn-id: file:///usr/local/Singular/svn/trunk@1209 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/fex/runfex

    rd636ad r085370c  
    11#! /home/schmidt/bin/bash
    2 # $Id: runfex,v 1.5 1998-02-02 11:00:54 schmidt Exp $
    3 
    4 #{{{ docu
    5 #
    6 # runfxc - 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.
    77#
    88#}}}
     
    130130# $1: options how to print data
    131131# $2: default width to print data
     132# $3: name of example/collection
     133# $4: note on example/collection
    132134#
    133135# Global variables used:
     
    139141    typeset \
    140142        options="$1" \
     143        name="$3" \
     144        note="$4" \
    141145        colWidth
    142146
     
    149153    while [ -n "$options" ]; do
    150154        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/}" ;;
    151165            (*p*) echo "$algChar"
    152166                 options="${options//p/}" ;;
     
    338352        if [ -n "$debugMode" ]; then
    339353            echo "skipping $exampleName"
    340         else
    341             warn "skipping $exampleName"
    342354        fi
    343355        return
     
    423435
    424436        # print table
    425         printData "$algorithmTBOptions" "$TBColWidth"
     437        printData "$algorithmTBOptions" "$TBColWidth" "$exampleName" "$exampleNote"
    426438    }
    427439    #}}}
     
    435447#
    436448# runROOptions: options for RO table.  Read from commandline.
    437 # runNote: comment on run.  Read from commandline.
    438449# rawCollectionName: collection name with full path
    439450#
     
    445456#}}}
    446457typeset runROOptions=""
    447 typeset runNote=""
    448458typeset rawCollectionName=""
    449459
     
    451461# read options
    452462typeset opt
    453 while getopts "n:a:c:C:t:r:d" opt; do
     463while getopts "a:c:C:t:r:d" opt; do
    454464    case "$opt" in
    455         (n)  runNote="$OPTARG" ;;
    456465        (a)  runOptions="$runOptions -a$OPTARG" ;;
    457466        (c)  runOptions="$runOptions -c$OPTARG" ;;
     
    518527        options="${options//tcrd/}"
    519528
    520         printData "$options" "$ROColWidth"
     529        printData "$options" "$ROColWidth" "$collectionName" "$collectionNote"
    521530    }
    522531fi
Note: See TracChangeset for help on using the changeset viewer.