aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/i-data-usage.sh
blob: a29951b06bc7ee34e030bccf27c71cd95c12fa14 (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
#!/bin/sh
# SPDX-FileCopyrightText: 2023 Markus Uhlin <maxxe@rpblc.net>
# SPDX-License-Identifier: ISC

i_data_usage () {
	local _src_prefix _dest _files

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

	_files="
abort
accept
addlist
adjourn
alias
allobservers
assess
backward
bell
best
boards
censor
channel
clearmessages
cshout
date
decline
draw
eco
examine
finger
flag
flip
forward
games
goboard
gonum
handles
hbest
history
hrank
inchannel
it
kibitz
limits
llogons
logons
mailhelp
mailmess
mailmoves
mailoldmoves
mailsource
mailstored
match
messages
mexamine
moretime
moves
news
next
notify
observe
oldmoves
open
password
pause
pending
promote
quit
rank
refresh
resign
revert
say
set
shout
showlist
simabort
simadjourn
simallabort
simalladjourn
simgames
simmatch
simnext
simopen
simpass
simprev
smoves
sposition
statistics
stored
style
sublist
switch
takeback
tell
time
unalias
uncensor
unexamine
unnotify
unobserve
unpause
uptime
variables
whisper
who
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_usage "${1}" "${2}"