Annotation of researchv10no/cmd/map/export/map.sh, revision 1.1

1.1     ! root        1: # MF -m -f or "", M map files, A other arguments
        !             2: # MFLAG and FFLAG 0 or 1 for -m or -f ever used
        !             3: FEATURE=no
        !             4: MAPDIR=${MAPDIR-/usr/lib/map}
        !             5: MAPPROG=${MAPPROG-$MAPDIR/map}
        !             6: M= A= MF= MFLAG=0 FFLAG=0
        !             7: for i in $*
        !             8: do
        !             9:        case $i in
        !            10:        -m)
        !            11:                MF=-m MFLAG=1 ;;
        !            12:        -f)
        !            13:                MF=-f FFLAG=1 ;;
        !            14:        -*)
        !            15:                MF= A="$A $i" ;;
        !            16:        *)
        !            17:                case $MF$i in
        !            18:                -m*)            M="$M $i" ;;
        !            19:                -friv*4)        M="$M 201 202 203 204";;
        !            20:                -friv*3)        M="$M 201 202 203";;
        !            21:                -friv*2)        M="$M 201 202";;
        !            22:                -friv*)         M="$M 201";;
        !            23:                -firiv*[34])    M="$M 206 207 208";;
        !            24:                -firiv*2)       M="$M 206 207";;
        !            25:                -firiv*)        M="$M 206";;
        !            26:                -fcoast*4|-fshore*4|-flake*4)   M="$M 102 103 104";;
        !            27:                -fcoast*3|-fshore*3|-flake*3)   M="$M 102 103";;
        !            28:                -fcoast*2|-fshore*2|-flake*2)   M="$M 102";;
        !            29:                -fcoast*|-fshore*|-flake*)      M="$M 101";;
        !            30:                -filake*[234]|-fishore*[234])   M="$M 106 107";;
        !            31:                -filake*|-fishore*)             M="$M 106";;
        !            32:                -freef*)        M="$M 108";;
        !            33:                -fcanal*[34])   M="$M 210 211 212";;
        !            34:                -fcanal*2)      M="$M 210 211";;
        !            35:                -fcanal*)       M="$M 210";;
        !            36:                -fglacier*)     M="$M 115";;
        !            37:                -fstate*|-fprovince*)           M="$M 401";;
        !            38:                -fcountr*[34])  M="$M 301 302 303";;
        !            39:                -fcountr*2)     M="$M 301 302";;
        !            40:                -fcountr*)      M="$M 301";;
        !            41:                -fsalt*[234])   M="$M 109 110";;
        !            42:                -fsalt*)        M="$M 109";;
        !            43:                -fice*[234]|-fshel*[234])       M="$M 113 114";;
        !            44:                -fice*|-fshel*)                 M="$M 113";;
        !            45:                -f*)    echo map: unknown feature $i 1>&2
        !            46:                        exit 1 ;;
        !            47:                *)
        !            48:                        A="$A $i" MF=
        !            49:                esac
        !            50:        esac
        !            51: done
        !            52: 
        !            53: case "$MFLAG$FFLAG$M " in
        !            54: 00)
        !            55:        : ;;
        !            56: 1* | *" 101 "*)
        !            57:        M="-m $M" ;;
        !            58: 01*)
        !            59:        M="-m 101 $M"
        !            60: esac
        !            61: 
        !            62: MAP=${MAP-world} MAPDIR=$MAPDIR $MAPPROG $A $M

unix.superglobalmegacorp.com

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