|
|
1.1 root 1: # F FEATUREs, M map files, A other arguments
2: FEATURE=no
3: MAPPROG=${MAPPROG-/usr/lib/map}
4: F= M= A=
5: for i
6: do
7: case $FEATURE in
8: no)
9: case $i in
10: -f)
11: FEATURE=yes
12: F="$F " ;;
13: *)
14: A="$A $i"
15: esac ;;
16: yes)
17: case $i in
18: -f)
19: : ;;
20: -*)
21: A="$A $i"
22: FEATURE=no ;;
23: riv*2)
24: F="$F 201 202";;
25: riv*3)
26: F="$F 201 202 203";;
27: riv*4)
28: F="$F 201 202 203 204";;
29: riv*)
30: F="$F 201";;
31: iriv*2)
32: F="$F 206 207";;
33: iriv*[34])
34: F="$F 206 207 208";;
35: iriv*)
36: F="$F 206";;
37: coast*2|shore*2)
38: F="$F 102";;
39: coast*3|shore*3)
40: F="$F 102 103";;
41: coast*4|shore*4)
42: F="$F 102 103 104";;
43: coast*|shore*)
44: ;;
45: ilake*[234]|ishore*[234])
46: F="$F 106 107";;
47: ilake*|ishore*)
48: F="$F 106";;
49: reef*)
50: F="$F 108";;
51: canal*2)
52: F="$F 210 211";;
53: canal*[34])
54: F="$F 210 211 212";;
55: canal*)
56: F="$F 210";;
57: glacier*)
58: F="$F 115";;
59: state*|province*)
60: F="$F 401";;
61: countr*2)
62: F="$F 301 302";;
63: countr*[34])
64: F="$F 301 302 303";;
65: countr*)
66: F="$F 301";;
67: salt*[234])
68: F="$F 109 110";;
69: salt*)
70: F="$F 109";;
71: ice*[234]|shel*[234])
72: F="$F 113 114";;
73: ice*|shel*)
74: F="$F 113";;
75: *)
76: echo map: unknown feature $i 2>&1
77: exit 1
78: esac
79: esac
80: done
81: for j in $F
82: do
83: if test -r /usr1/maps/$j
84: then M="$M /usr1/maps/$j"
85: fi
86: done
87:
88: case $F in
89: "") : ;;
90: *) if test -r /usr1/maps/101
91: then M="101 $M"
92: fi
93: M="-m $M"
94: esac
95:
96: MAP=${MAP-world} MAPDIR=${MAPDIR-/usr/dict} $MAPPROG $A $M
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.