-
Notifications
You must be signed in to change notification settings - Fork 0
/
credits.sh
executable file
·454 lines (362 loc) · 8.95 KB
/
credits.sh
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
#!/bin/sh
# Copyright (C) 1998-2004 Gary Wong <gtw@gnu.org>
# Copyright (C) 2004-2023 the AUTHORS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# $Id: credits.sh,v 1.168 2023/10/18 21:33:42 plm Exp $
#
authors=/tmp/auth.$$
contributors=/tmp/cont.$$
support=/tmp/supp.$$
translations=/tmp/trans.$$
credit=/tmp/cred.$$
extra=/tmp/extra.$$
cat > $authors <<EOF
Joseph Heled
Oystein Johansen
Jonathan Kinsey
David Montgomery
Jim Segrave
Joern Thyssen
Gary Wong
Christian Anthon
Michael Petch
Philippe Michel
EOF
cat > $contributors <<EOF
Olivier Baur
Holger Bochnig
Guido Flohr
Nis Joergensen
Petr Kadlec
Isaac Keslassy
Kaoru Takahashi
Stein Kulseth
Ingo Macherius
Jeremy Moore
Rod Roark
Aaron Tikuisis
EOF
cat > $support <<EOF
Oystein Johansen,Web Pages
Achim Mueller,Manual
Nardy Pillards,Web Pages
Albert Silver,Tutorial
EOF
cat > $translations <<EOF
Petr Kadlec,Czech
Joern Thyssen,Danish
Matti Kamppinen,Finnish
Olivier Baur,French
Achim Mueller,German
Vangelis Skarmoutsos,Greek
Hlynur Sigurgislason,Icelandic
Renzo Campagna,Italian
Yoshito Takeuchi,Japanese
Mihai Varzaru,Romanian
Dmitri I Gouliaev,Russian
Fernando García García,Spanish
Akif Dinc,Turkish
EOF
cat > $credit <<EOF
Russ Allbery
Misja Alma
Kazuaki Asai
Eric Augustine
Erik Barfoed
Ron Barry
Steve Baedke
Stefan van den Berg
Frank Berger
Jim Borror
Chuck Bower
Adrian Bunk
Nick Bratby
Craig Campbell
Timothy Chow
John Chuang
Tristan Colgate
Olivier Croisille
Ned Cross
Ian Curtis
Bill Davidson
Michael Depreli
Ian Dunstan
Max Durbano
Peter Eberhard
Robert Eberlein
Fotis
Dan Fandrich
Kennedy Fraser
Ric Gerace
Michel Grimminck
Eric Groleau
Jeff Haferman
Morten Juul Henriksen
Alain Henry
Jens Hoefkens
Casey Hopkins
Martin Janke
Neil Kazaross
Mathias Kegelmann
Matija Kejzar
Bert Van Kerckhove
James F. Kibler
Johnny Kirk
Gerhard Knop
Robert Konigsberg
Martin Krainer
Elias Kritikos
Corrin Lakeland
Tim Laursen
Myshkin LeVine
Eli Liang
Ege Lundgren
Kevin Maguire
Massimiliano Maini
Giulio De Marco
John Marttila
Alix Martin
Tom Martin
William Maslen
Joachim Matussek
Thomas Meyer
Daniel Murphy
Magnar Naustdalslid
Dave Neary
Rolf Nielsen
Mirori Orange
Peter Orum
Roy Passfield
Thomas Patrick
Billie Patterson
Zvezdan Petkovic
Petri Pitkanen
Sam Pottle
Henrik Ravn
James Rech
Jared Riley
Klaus Rindholt
Oliver Riordan
Alex Romosan
Hans-Juergen Schaefer
Steve Schreiber
Hugh Sconyers
Martin Schrode
Paul Selick
Sho Sengoku
Ian Shaw
Alberta di Silvio
Peter Sochovsky
Mark Spencer
Scott Steiner
Maik Stiebler
W. Stroop (Rob)
Daisuke Takahashi
Yoshito Takeuchi
Jacques Thiriat
Malene Thyssen
Claes Tornberg
Sander van Rijnswou
Robert-Jan Veldhuizen
Morten Wang
Jeff White
JP White
Mike Whitton
Chris Wilson
Simon Woodhead
Kit Woolsey
Frank Worrell
Christopher D. Yep
Anders Zachrison
Douglas Zare
Tilemachos Zoidis
Louis Zulli
EOF
cat > $extra <<EOF
Hans Berliner
Chuck Bower
Rick Janowski
Brian Sheppard
Gerry Tesauro
Morten Wang
Douglas Zare
Michael Zehr
EOF
# generate credits.c
cat > credits.h <<EOF
/* Do not modify this file! It is created automatically by credits.sh. */
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <glib/gi18n.h>
typedef struct {
char* Name;
char* Type;
} credEntry;
typedef struct {
const char* Title;
credEntry *Entry;
} credits;
extern credEntry ceAuthors[];
extern credEntry ceContrib[];
extern credEntry ceTranslations[];
extern credEntry ceSupport[];
extern credEntry ceCredits[];
extern credits creditList[];
extern const char aszAUTHORS[];
extern const char aszCOPYRIGHT[];
EOF
cat > credits.c <<EOF
/* Do not modify this file! It is created automatically by credits.sh. */
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "common.h"
#include <glib/gi18n.h>
#include "credits.h"
const char aszCOPYRIGHT[] = N_("Copyright (C) 1999-2004 Gary Wong.\n"
"Copyright (C) 2004-2024 the AUTHORS; for details type \`show version'.");
credEntry ceAuthors[] = {
EOF
# Authors
cat $authors | sed -e 's/.*/ {"&", 0},/g' >> credits.c
cat >> credits.c <<EOF
{0, 0}
};
EOF
# Contributors
cat >> credits.c <<EOF
credEntry ceContrib[] = {
EOF
cat $contributors | sed -e 's/.*/ {"&", 0},/g' >> credits.c
cat >> credits.c <<EOF
{0, 0}
};
EOF
# Support
cat >> credits.c <<EOF
credEntry ceSupport[] = {
EOF
cat $support | sed -e 's/^\(.*\),\(.*\)$/ {"\1", N_\("\2\"\) },/g' >> credits.c
cat >> credits.c <<EOF
{0, 0}
};
EOF
# Translations
cat >> credits.c <<EOF
credEntry ceTranslations[] = {
EOF
cat $translations | sed -e 's/^\(.*\),\(.*\)$/ {"\1", N_\("\2\"\) },/g' >> credits.c
cat >> credits.c <<EOF
{0, 0}
};
EOF
# Contributors
cat >> credits.c <<EOF
credEntry ceCredits[] = {
EOF
cat $credit $extra | sort -f -k 2 | uniq | sed -e 's/.*/ {"&", 0},/g' >> credits.c
cat >> credits.c <<EOF
{0, 0}
};
EOF
# some C stuff
cat >> credits.c <<EOF
credits creditList[] =
{
{N_("Authors"), ceAuthors},
{N_("Code Contributors"), ceContrib},
{N_("Translations"), ceTranslations},
{N_("Support"), ceSupport},
{0, 0}
};
EOF
#
# Generate AUTHORS
#
cat > AUTHORS <<EOF
GNU Backgammon was written by:
EOF
pr -3 -t < $authors | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<EOF
Support by:
EOF
cat $support | sed -e 's/^\(.*\),\(.*\)$/ \1 (\2)/g' | pr -2 -t | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<EOF
Contributors of code include:
EOF
pr -3 -t < $contributors | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<EOF
Translations by:
EOF
cat $translations | sed -e 's/^\(.*\),\(.*\)$/ \1 (\2)/g' | pr -1 -t | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<EOF
Contributors (of bug reports and suggestions) include:
EOF
pr -3 -t < $credit | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<'EOF'
Credit is also due to those who have published information about backgammon
playing programs (references will appear here later). GNU Backgammon has
borrowed ideas from:
EOF
pr -4 -t < $extra | expand | sed 's/^/ /' >> AUTHORS
cat >> AUTHORS <<'EOF'
The manual for GNU Backgammon includes a chapter describing the rules of
backgammon, written by Tom Keith for his Backgammon Galore web site
<https://www.bkgm.com/>.
Library code from the following authors has been included in GNU Backgammon:
Austin Appleby (the MurmurHash3 hashing function)
Ulrich Drepper (an implementation of the public domain MD5 algorithm)
Bob Jenkins (the ISAAC pseudo random number generator)
Mutsuo Saito and Makoto Matsumoto (the Mersenne Twister PRNG)
Brian Paul (the TR tile rendering library)
Claes Tornberg (the mec match equity table generator)
If you feel that you're not given credits for your contributions to
GNU Backgammon please write to one of the developers.
Please send bug reports for GNU Backgammon to: <bug-gnubg@gnu.org>
EOF
#
# Add AUTHORS to credits.c
#
cat >> credits.c <<EOF
const char aszAUTHORS[] =
EOF
sed -e 's/"/\\"/g' AUTHORS | sed -e 's/.*/"&\\n"/g' >> credits.c
cat >> credits.c <<EOF
;
EOF
rm -f $authors $contributors $support $translations $credit $extra