File: Policy.sh.SH

package info (click to toggle)
trn 3.6-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 1,620 kB
  • ctags: 1,535
  • sloc: ansic: 25,214; sh: 4,637; makefile: 1,032; yacc: 660
file content (161 lines) | stat: -rw-r--r-- 4,788 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
case $CONFIG in
'') . ./config.sh ;;
esac
echo "Extracting Policy.sh (with variable substitutions)"
$spitshell <<!GROK!THIS! >Policy.sh
$startsh
#
#  This file was produced by running the Polich.sh.SH script, which
#  gets its values from config.sh, which is generally produced by
#  running Configure.
# 
#  $Id: Policy.sh.SH,v 3.5 1994/04/24 16:47:38 davison Trn $

# login name of the person who configured trn (not particularly interesting).
cf_by='$cf_by'
# time of configuration (not particularly interesting).
cf_time='$cf_time'

#		install directives.

#		bin directories (string values)
#	name of the final resting place
bin='$bin'
#	how to get to the final resting place (thank you, AFS)
installbin='$installbin'

#		private libraries
#	name of the final resting place for those items in the library
#	directory (string value)
privlib='$privlib'
#	How to get to the library final resting place (thanks, AFS)
installprivlib='$installprivlib'

#	interesting questions about man
# 	where do man page sources go?
mansrc='$mansrc'
#	what extention do man pages get?
manext='$manext'

#		path to assorted programs that we might want to override.
#	name of the default editor.  (string value)
defeditor='$defeditor'
#	prefered user shell (string value)
prefshell='$prefshell'
#	favorite local pager (string value)
pager='$pager'
# where is inews?  (string value)
inewsloc='$inewsloc'
#	path to interactive speller or "none" (string value)
ispell_prg='$ispell_prg'
#	spelling options for ispell_prg or "spell" if "none" (string value)
ispell_options='$ispell_options'

#		internal options
#	ignore the ORGANIZATION environment variable? (define/undef)
d_ignoreorg='$d_ignoreorg'
#	does the mailer understand FQDN addressing? (define/undef)
d_internet='$d_internet'
#	do you have a news admin? (define/undef)
d_newsadm='$d_newsadm'
#	name of the news admin? (string value)
newsadmin='$newsadmin'
#	read via NNTP? (define/undef)
d_nntp='$d_nntp'
#	use the XDATA NNTP extension? (define/undef)
d_xdata='$d_xdata'
#	path to a file containing a server name, or a hostname (string value)
servername='$servername'

#	distribution names (string values)
# local city
citydist='$citydist'
# "local" country
cntrydist='$cntrydist'
# "local" continent
contdist='$contdist'
# site distribution
locdist='$locdist'
# organizational distribution
orgdist='$orgdist'
# state/province distribution name
statedist='$statedist'
# multistate region distribution name
multistatedist='$multistatedist'

#		Naming information.
#	password file contains names (define/undef)
d_passnames='$d_passnames'
#	berkeley style password entries (name first in GCOS) (define/undef)
d_berknames='$d_berknames'
#	USG style password entries (account number first in GCOS)
#	(define/undef)
d_usgnames='$d_usgnames'
#	what type of name to use.. (bsd/usg/other)
nametype='$nametype'

#	How portable do we want to be? Determines if we do lookups now
#	or wait until run time.  (define/undef)
d_portable='$d_portable'

#		news library information
#	where is the news library (usually /usr/lib/news) may contain ~<usrname>
newslib='$newslib'
#	absolute path name to /usr/lib/news.
newslibexp='$newslibexp'
#	where is the news spool (usually /{var,usr}/spool/news)
newsspool='$newsspool'
#	active file stuff, like where is it, what is its name, etc
#	path to the active file. (string value)
active='$active'
#	do we have an active.times file? (define/undef)
d_acttimes='$d_acttimes'
#	path to the active.times file. (string value)
acttimes='$acttimes'
#	organizations name. path to file, or constant string
orgname='$orgname'

#	only one of the two following is needed
#	command to find the posting hosts name (string value, optional)
phostcmd='$phostcmd'
#	file containing posting hosts name or constant string
#				(string value, optional)
#
phost='$phost'

#	what should we use? mthreads or overview
#	use the mthreads format? (define/undef)
d_usemt='$d_usemt'
#	where do we find the thread files? (string value)
threaddir='$threaddir'
#	use the overview format? (define/undef)
d_useov='$d_useov'
#	where do we find the .overview fils? (string value)
overviewdir='$overviewdir'

#	trn start up options
trn_init='$trn_init'
#	start up with the selector? 
trn_select='$trn_select'

!GROK!THIS!
$eunicefix Policy.sh
case "$srcdir" in
'') srcdir='.';;
esac
if test -f $srcdir/hints/Policy.sh ; then
    echo "Checking for changes."
    grep -v '^cf_' Policy.sh >Policy.tmp
    if grep -v '^cf_' $srcdir/hints/Policy.sh | diff - Policy.tmp >/dev/null
    then
	echo "Policy.sh unchanged, retaining original"
	rm Policy.sh
    else
	echo "installing new Policy.sh, old one left in Policy.sh.old"
	(cd $srcdir/hints; mv Policy.sh Policy.sh.old)
	mv Policy.sh $srcdir/hints
    fi
    rm Policy.tmp
else
    mv Policy.sh $srcdir/hints
fi