#!/bin/sh # # credits.sh # # by Gary Wong , 1998, 1999, 2000, 2001, 2002, 2003, 2004 # # This program is free software; you can redistribute it and/or modify # it under the terms of version 3 or later of the GNU General Public License as # published by the Free Software Foundation. # # 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, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: credits.sh,v 1.157 2018/01/15 21:04:21 plm Exp $ # authors=/tmp/auth.$$ contributors=/tmp/cont.$$ support=/tmp/supp.$$ translations=/tmp/trans.$$ credit=/tmp/cred.$$ extra=/tmp/extra.$$ cat > $authors < $contributors < $support < $translations < $credit < $extra < credits.h < typedef struct _credEntry { char* Name; char* Type; } credEntry; typedef struct _credits { 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 < #include "credits.h" const char aszCOPYRIGHT[] = N_("Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 by Gary Wong.\n" "Copyright (C) 2018 by Gary Wong and the AUTHORS; for details type \`show version'."); credEntry ceAuthors[] = { EOF # Authors cat $authors | sed -e 's/.*/ {"&", 0},/g' >> credits.c cat >> credits.c <> credits.c <> credits.c cat >> credits.c <> credits.c <> credits.c cat >> credits.c <> credits.c <> credits.c cat >> credits.c <> credits.c <> credits.c cat >> credits.c <> credits.c < AUTHORS <> AUTHORS cat >> AUTHORS <> AUTHORS cat >> AUTHORS <> AUTHORS cat >> AUTHORS <> AUTHORS cat >> AUTHORS <> 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 . 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) Takuji Nishimura 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: EOF # # Add AUTHORS to credits.c # cat >> credits.c <> credits.c cat >> credits.c <