aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/i-data-help.sh
blob: 38ece7a943f3c8f17b0df156883a0dd19aa4bcfe (plain)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#!/bin/sh
# SPDX-FileCopyrightText: 2023 Markus Uhlin <maxxe@rpblc.net>
# SPDX-License-Identifier: ISC

i_data_help () {
	local _src_prefix _dest _files

	_src_prefix=${1}
	_dest=${2}

# login -> ../messages/login*
# logout -> ../messages/logout*
# motd -> ../messages/motd*
# newstuff -> /home/chess/FICS/5001/README.NEW
# register.dist*
	_files="
abort
abuser
accept
addlist
addresses
adjourn
adjournments
adjudication
adm_info
admins
adm_new
alias
allobservers
analysis
assess
backward
bell
best
blindfold
blitz
boards
bughouse
bughouse_not
bughouse_strat
busy
censor
chan_1
channel
channel_list
clearmessages
cls
cls_info
commands
computers
convert_bcf
convert_elo
convert_uscf
courtesyabort
credit
cshout
date
decline
draw
eco
eggo
etiquette
examine
ficsfaq
fics_lingo
finger
fixes
flag
flip
formula
forward
ftp_hints
games
glicko
gm_game
gnotify
goboard
gonum
handle
handles
hbest
_help
help
highlight
history
hrank
inchannel
index
inetchesslib
interfaces
intro_basics
intro_general
intro_information
intro_moving
intro_playing
intro_settings
intro_special
intro_talking
intro_welcome
it
journal
jsave
kibitz
kiblevel
lag
lecture1
lightning
limits
lists
llogons
logons
mailhelp
mailmess
mailmoves
mailoldmoves
mailsource
mailstored
match
messages
mexamine
moretime
motd_help
moves
newrating
news
next
noplay
notes
notify
observe
oldmoves
open
partner
password
pause
pending
policy
prefresh
private
promote
ptell
quit
rank
ratings
refresh
register
resign
revert
say
servers
set
shout
shout_abuse
shout_quota
showlist
simabort
simadjourn
simallabort
simalladjourn
simgames
simmatch
simnext
simopen
simpass
simprev
simuls
smoves
soapbox
sourcecode
sposition
standard
statistics
stored
style
sublist
switch
takeback
team
teamgames
tell
time
timeseal
totals
unalias
unexamine
unobserve
unpause
untimed
uptime
uscf_faq
variables
wcmatch
whenshut
whisper
who
wild
withdraw
xtell
znotify
"

	echo "installing..."

	for file in ${_files}; do
		printf "%s -> %s: " "${_src_prefix}/${file}" "${_dest}/${file}"
		if [ -r "${_src_prefix}/${file}" ]; then
			install -m 0644 "${_src_prefix}/${file}" "${_dest}"
			if [ $? -eq 0 ]; then
				echo "ok"
			else
				echo "error"
			fi
		else
			echo "not found"
		fi
	done
}

i_data_help "${1}" "${2}"