Annotation of 43BSDReno/contrib/isode-beta/others/quipu/tools/scripts/ent2aei, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: awk '
                      3: BEGIN {
                      4:        mapping["filestore"]    = "iso ftam"
                      5:        mapping["terminal"]     = "iso vt"
                      6:        mapping["mib"]          = "iso cmip"
                      7:        mapping["passwdstore"]  = "isode passwd lookup demo"
                      8:        mapping["shell"]        = "isode shell"
                      9:        mapping["Z39.50"]       = "IRP Z39.50"
                     10:        mapping["pp-qmgr"]      = "pp qmgr interface"
                     11:        mapping["\"pp qmgr\""]  = "pp qmgr interface"
                     12: }
                     13: {
                     14:        if ( substr($0,1,1) == "#" )
                     15:                next
                     16:        if ( $1 == "" )
                     17:                next
                     18: 
                     19:        if (new == "" ) {
                     20:                tmp = $2
                     21:                for (i=3; i<=NF -2; i++)
                     22:                        tmp = tmp " " $i
                     23: 
                     24:                if ( $NF == "\\" ) 
                     25:                        new = $1
                     26:                else {
                     27:                        if ($1 == "default")
                     28:                                continue
                     29:                        if (mapping [tmp] == "")
                     30:                                printf "%-14s %-20s %s\n", $1, tmp, $NF
                     31:                        else
                     32:                                printf "%-14s %-20s %s\n", $1, mapping[tmp], $NF
                     33:                }
                     34:        } else {
                     35:                if (substr($1,1,1) == "\\")
                     36:                        $1 = substr ($1,2)
                     37: 
                     38:                if (new == "default")
                     39:                        next
                     40:                if (mapping [tmp] == "")
                     41:                        printf "%-14s %-20s %s\n", new, tmp, $1
                     42:                else
                     43:                        printf "%-14s %-20s %s\n", new, mapping[tmp], $1
                     44: 
                     45:                new = ""
                     46:        }
                     47: 
                     48: } ' 
                     49: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.