]> granicus.if.org Git - fortune-mod/blob - LICENSE
gh actions #1: mswin64: investigate
[fortune-mod] / LICENSE
1 /*-
2  * Copyright (c) 1986, 1993
3  *      The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Ken Arnold.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. All advertising materials mentioning features or use of this software
17  *    must display the following acknowledgement:
18  *      This product includes software developed by the University of
19  *      California, Berkeley and its contributors.
20  * 4. Neither the name of the University nor the names of its contributors
21  *    may be used to endorse or promote products derived from this software
22  *    without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34  * SUCH DAMAGE.
35  */
36
37 /* Modified September, 1995, Amy A. Lewis
38  * 1: removed all file-locking dreck.  Unnecessary
39  * 2: Fixed bug that made fortune -f report a different list than
40  *    fortune with any other parameters, or none, and which forced
41  *    the program to read only one file (named 'fortunes')
42  * 3: removed the unnecessary print_file_list()
43  * 4: Added "OFFDIR" to pathnames.h as the directory in which offensive
44  *    fortunes are kept.  This considerably simplifies our life by
45  *    permitting us to dispense with a lot of silly tests for the string
46  *    "-o" at the end of a filename.
47  * 5: I think the problems with trying to find filenames were fixed by
48  *    the change in the way that offensive files are defined.  Two birds,
49  *    one stone!
50  * 6: Calculated probabilities for all files, so that -f will print them.
51  */
52
53 /* Changes Copyright (c) 1997 Dennis L. Clark.  All rights reserved.
54  *
55  *    The changes in this file may be freely redistributed, modified or
56  *    included in other software, as long as both the above copyright
57  *    notice and these conditions appear intact.
58  */
59
60 /* Modified May 1997, Dennis L. Clark (dbugger@progsoc.uts.edu.au)
61  *  + Various portability fixes
62  *  + Percent selection of files with -a now works on datafiles which
63  *    appear in both unoffensive and offensive directories (see man page
64  *    for details)
65  *  + The -s and -l options are now more consistent in their
66  *    interpretation of fortune length
67  *  + The -s and -l options can now be combined wit the -m option
68  */
69
70 /* Modified Jul 1999, Pablo Saratxaga <srtxg@chanae.alphanet.ch>
71  * - added use of the LANG variables; now if called without argument
72  * it will choose (if they exist) fortunes in the users' language.
73  * (that is, under a directory $LANG/ under the main fortunes directory
74  *
75  * Added to debian by Alastair McKinstry, <mckinstry@computer.org>, 2002-07-31
76  */