This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / locdist.U
CommitLineData
d8875586
MBT
1?RCS: $Id: locdist.U 1 2006-08-24 12:32:52Z rmanfredi $
2?RCS:
3?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4?RCS:
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 4.0.
10?RCS:
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)
14?RCS:
15?RCS: Revision 3.0 1993/08/18 12:09:06 ram
16?RCS: Baseline for dist 3.0 netwide release.
17?RCS:
18?MAKE:locdist orgdist citydist statedist multistatedist cntrydist contdist: \
19 test newslibexp cat Myread Oldconfig
20?MAKE: -pick add $@ %<
21?S:locdist:
22?S: This variable contains the eventual value of the LOCDIST symbol,
23?S: which is the local organization's distribution name for news.
24?S:.
25?S:orgdist:
26?S: This variable contains the eventual value of the ORGDIST symbol,
27?S: which is the organization's distribution name for news.
28?S:.
29?S:citydist:
30?S: This variable contains the eventual value of the CITYDIST symbol,
31?S: which is the city's distribution name for news.
32?S:.
33?S:statedist:
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.
36?S:.
37?S:multistatedist:
38?S: This variable contains the eventual value of the MULTISTATEDIST symbol,
39?S: which is the news distribution code for multi-state region.
40?S:.
41?S:cntrydist:
42?S: This variable contains the eventual value of the CNTRYDIST symbol,
43?S: which is the country's distribution name for news.
44?S:.
45?S:contdist:
46?S: This variable contains the eventual value of the CONTDIST symbol,
47?S: which is the continent's distribution name for news.
48?S:.
49?C:LOCDIST:
50?C: This symbol contains the distribution name for the news system that
51?C: restricts article distribution to the local organization.
52?C:.
53?C:ORGDIST:
54?C: This symbol contains the distribution name for the news system that
55?C: restricts article distribution to the organization.
56?C:.
57?C:CITYDIST:
58?C: This symbol contains the distribution name for the news system that
59?C: restricts article distribution to the city.
60?C:.
61?C:STATEDIST:
62?C: This symbol contains the distribution name for the news system that
63?C: restricts article distribution to the state or province.
64?C:.
65?C:MULTISTATEDIST:
66?C: This symbol contains the distribution name for the news system that
67?C: restricts article distribution to a multi-state region.
68?C:.
69?C:CNTRYDIST:
70?C: This symbol contains the distribution name for the news system that
71?C: restricts article distribution to the country.
72?C:.
73?C:CONTDIST:
74?C: This symbol contains the distribution name for the news system that
75?C: restricts article distribution to the continent.
76?C:.
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" /**/
84?H:.
85: get the local distributions
86$cat <<'EOH'
87
88Distribution groups are the things you use on the Distribution line to limit
89where an article will go to. You are likely to be a member of several
90distribution groups, such as organization, city, state, province, country,
91continent, etc. For example, Los Angeles has the distribution code "la",
92New Jersey has the code "nj", and Europe has the code "eunet".
93
94The categories you will be asked are:
95
96local organization (Could be just one machine or a cluster or an office)
97organization att, dec, kgb, ...
98city la, ny, mosc, ...
99state/province ca, nj, bc, ...
100multi-state region pnw, ne, ...
101country usa, can, rok, whatever
102continent na (North America), asia, etc.
103
104EOH
105if $test -f $newslibexp/distributions; then
106 case "$silent" in
107 true) ;;
108 *) dflt='Hit return to continue'
109 rp=''
110 . ./myread
111 ;;
112 esac
113 echo "Here is your distributions file:" >&4
114 echo " " >&4
115 $cat >&4 $newslibexp/distributions
116 echo " " >&4
117fi
118echo "Use 'none' for any distributions you don't have."
119echo " "
120case "$locdist" in
121'') dflt="none";;
122*) dflt="$locdist";;
123esac
124rp="What is the distribution code for your local organization?"
125. ./myread
126locdist="$ans"
127case "$orgdist" in
128'') dflt="none";;
129*) dflt="$orgdist";;
130esac
131rp="What is the distribution code for your organization?"
132. ./myread
133orgdist="$ans"
134case "$citydist" in
135'') dflt="none";;
136*) dflt="$citydist";;
137esac
138rp="What is the distribution code for your city?"
139. ./myread
140citydist="$ans"
141case "$statedist" in
142'') dflt="none";;
143*) dflt="$statedist";;
144esac
145rp="What is the distribution code for your state/province?"
146. ./myread
147statedist="$ans"
148case "$multistatedist" in
149'') dflt="none";;
150*) dflt="$multistatedist";;
151esac
152rp="What is the distribution code for your multi-state region?"
153. ./myread
154multistatedist="$ans"
155case "$cntrydist" in
156'') dflt="none";;
157*) dflt="$cntrydist";;
158esac
159rp="What is the distribution code for your country?"
160. ./myread
161cntrydist="$ans"
162case "$contdist" in
163'') dflt="none";;
164*) dflt="$contdist";;
165esac
166rp="What is the distribution code for your continent?"
167. ./myread
168contdist="$ans"
169$cat <<'EOM'
170
171If you have any other distribution groups you will need to edit Pnews
172and newsetup to add them.
173EOM
174