1 ?RCS: $Id: locdist.U,v 3.0.1.1 1994/05/06 15:09:20 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: locdist.U,v $
12 ?RCS: Revision 3.0.1.1 1994/05/06 15:09:20 ram
13 ?RCS: patch23: added support for multi-state regions (WED)
15 ?RCS: Revision 3.0 1993/08/18 12:09:06 ram
16 ?RCS: Baseline for dist 3.0 netwide release.
18 ?MAKE:locdist orgdist citydist statedist multistatedist cntrydist contdist: \
19 test newslibexp cat Myread Oldconfig
20 ?MAKE: -pick add $@ %<
22 ?S: This variable contains the eventual value of the LOCDIST symbol,
23 ?S: which is the local organization's distribution name for news.
26 ?S: This variable contains the eventual value of the ORGDIST symbol,
27 ?S: which is the organization's distribution name for news.
30 ?S: This variable contains the eventual value of the CITYDIST symbol,
31 ?S: which is the city's distribution name for news.
34 ?S: This variable contains the eventual value of the STATEDIST symbol,
35 ?S: which is the state's or province's distribution name for news.
38 ?S: This variable contains the eventual value of the MULTISTATEDIST symbol,
39 ?S: which is the news distribution code for multi-state region.
42 ?S: This variable contains the eventual value of the CNTRYDIST symbol,
43 ?S: which is the country's distribution name for news.
46 ?S: This variable contains the eventual value of the CONTDIST symbol,
47 ?S: which is the continent's distribution name for news.
50 ?C: This symbol contains the distribution name for the news system that
51 ?C: restricts article distribution to the local organization.
54 ?C: This symbol contains the distribution name for the news system that
55 ?C: restricts article distribution to the organization.
58 ?C: This symbol contains the distribution name for the news system that
59 ?C: restricts article distribution to the city.
62 ?C: This symbol contains the distribution name for the news system that
63 ?C: restricts article distribution to the state or province.
66 ?C: This symbol contains the distribution name for the news system that
67 ?C: restricts article distribution to a multi-state region.
70 ?C: This symbol contains the distribution name for the news system that
71 ?C: restricts article distribution to the country.
74 ?C: This symbol contains the distribution name for the news system that
75 ?C: restricts article distribution to the continent.
77 ?H:#define LOCDIST "$locdist" /**/
78 ?H:#define ORGDIST "$orgdist" /**/
79 ?H:#define CITYDIST "$citydist" /**/
80 ?H:#define MULTISTATEDIST "$multistatedist" /**/
81 ?H:#define STATEDIST "$statedist" /**/
82 ?H:#define CNTRYDIST "$cntrydist" /**/
83 ?H:#define CONTDIST "$contdist" /**/
85 : get the local distributions
88 Distribution groups are the things you use on the Distribution line to limit
89 where an article will go to. You are likely to be a member of several
90 distribution groups, such as organization, city, state, province, country,
91 continent, etc. For example, Los Angeles has the distribution code "la",
92 New Jersey has the code "nj", and Europe has the code "eunet".
94 The categories you will be asked are:
96 local organization (Could be just one machine or a cluster or an office)
97 organization att, dec, kgb, ...
98 city la, ny, mosc, ...
99 state/province ca, nj, bc, ...
100 multi-state region pnw, ne, ...
101 country usa, can, rok, whatever
102 continent na (North America), asia, etc.
105 if $test -f $newslibexp/distributions; then
108 *) dflt='Hit return to continue'
113 echo "Here is your distributions file:" >&4
115 $cat >&4 $newslibexp/distributions
118 echo "Use 'none' for any distributions you don't have."
124 rp="What is the distribution code for your local organization?"
131 rp="What is the distribution code for your organization?"
136 *) dflt="$citydist";;
138 rp="What is the distribution code for your city?"
143 *) dflt="$statedist";;
145 rp="What is the distribution code for your state/province?"
148 case "$multistatedist" in
150 *) dflt="$multistatedist";;
152 rp="What is the distribution code for your multi-state region?"
154 multistatedist="$ans"
157 *) dflt="$cntrydist";;
159 rp="What is the distribution code for your country?"
164 *) dflt="$contdist";;
166 rp="What is the distribution code for your continent?"
171 If you have any other distribution groups you will need to edit Pnews
172 and newsetup to add them.