Commit Graph

306 Commits

Author SHA1 Message Date
wiz 37e458fa45 strategy should have an 'r'. Inspired by similar change in OpenBSD. 2002-02-19 17:09:40 +00:00
tv 5061395b91 Don't put [] around the strings passed to tr -- those can be interpreted
by shells.  Just quote 'em.
2002-01-30 19:41:39 +00:00
pooka b3714941a4 few entries more 2002-01-10 15:31:04 +00:00
soren dc53bf3cba Sync getopt() / man page with actual getopt options. 2001-12-20 20:10:33 +00:00
tv a2291b79c0 MKfoo=no -> NOfoo= 2001-12-12 00:07:45 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
wiz 1f1e26bd6d Presence looks better with a 'c' instead of an 's'. 2001-11-21 19:01:31 +00:00
wiz a58e0c8a53 Undo indentation glitch in previous. 2001-10-28 19:52:53 +00:00
proff 20d62e03c5 improve random number seeding 2001-10-28 19:47:48 +00:00
mjl ccc06ff4fc Add one. 2001-10-22 00:55:00 +00:00
proff 1c37cc593d Fortune is not moribund.
Add Farberisms from Prof. Dave Farber.

From: David Farber <dave@farber.net>
To: proff@iq.org (Julian Assange)
Date: Sat, 20 Oct 2001 03:29:08 -0400
Subject: Re: farberisms

Fine with me

At 02:27 PM 10/20/2001 +1000, you wrote:


>Hi Dave,
>
>I've just come accross your list of `Farberisms', which had me in
>stiches. As these are deliciously `fortune'esqe, I'd like to add
>them to the NetBSD distribution. Do you have any objections?
>
>Cheers,
>Julian.
2001-10-20 09:33:39 +00:00
mjl e854950bda More quote cleanup. Remove a fortune that also is in -o.
Add a couple of fortunes I had lying around.
2001-09-01 22:30:54 +00:00
mjl 30e1428afa Some more quotes removed. Corrected errors noticed by Andrew Brown
<atatat@atatdot.net>.
2001-09-01 21:28:28 +00:00
mjl a486f7fbc9 Fix typos and spelos. Add and correct some attributions. Add a
couple of fortunes. Canonize quotes. Remove duplicate fortunes.
Correct author names.
Mostly from FreeBSD and OpenBSD.
2001-09-01 19:35:32 +00:00
simonb ba96ebc2fd Match quotes. 2001-08-31 00:17:45 +00:00
mjl 7312906ef0 Remove duplicate fortunes. 2001-08-31 00:10:17 +00:00
wiz c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
atatat 60564f8ed0 Change -a to mean all files, as opposed to just a few more files.
Modify the regex handling so that we can match fortunes in rot13'ed
databases (rot13 the pattern and maintain a second compiled pattern)
and rot13 the rot13'ed fortune before output.

Move the rot13 code to a function since it's now used in three places
instead of just one.

Initialize posfile in one place since it appears to get used without
being initialized when using debugging.

Make a *slight* improvement to the random seeding by squaring the pid
and then xor'ing against the current time, since just xor'ing the time
with the pid will not change if they both advance by one from "odd" to
"even".
2001-08-15 17:25:42 +00:00
wiz a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
mason 8b7b300873 s/Upon you knees if you appear/Upon your knees if you appear/
Confirmed against <http://www.alcyone.com/max/lit/devils/>.
2001-06-24 23:25:19 +00:00
wiz 0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
christos ebe68eb4f9 Overhaul error handling and reporting for regular expressions.
Provide a RE_OK() macro that tests if the current compiled pattern
works and a RE_ERROR() macro that prints what went wrong as well
as the particular RE implementation can handle.
2001-06-04 21:21:42 +00:00
aymeric 37e6eb8fe5 Bail out when regex pattern is invalid if using regcomp or regcmp.
Remove trailing \n's also.

Addresses PR#13109
2001-06-04 20:56:56 +00:00
abs d590e6f410 Its is Dr. Elizabeth Dehner, not Dehaver.
From the vast and bewildering trek trivia of norm@sandbox.org.uk
2001-05-02 10:42:34 +00:00
pooka e1d6858626 NetBSD: You choose the hardware, we'll bring the OS.
from David Brownlee on netbsd-advocacy

While I'm in here, sort the file using tools/do_sort to get the recently
added fortunes into order.
2001-04-21 23:11:30 +00:00
hubertf 1bbc6b0055 Some entries from Richard Rauch, posted on netbsd-advocacy. 2001-04-21 14:49:08 +00:00
wiz 8a84240a6e Whitespace and/or punctuation fixes. 2001-04-02 22:47:29 +00:00
cgd 668a4dd967 convert to use getprogname() 2001-02-19 22:39:39 +00:00
pooka e2ced2d617 kill dupe 2001-02-10 18:14:13 +00:00
simonb 73c32f039c Fix simple typo. From bdc@world.std.com in PR misc/12150. 2001-02-07 22:59:19 +00:00
christos a2bee8edad fix nested extern and usage message 2001-02-05 00:29:44 +00:00
mjl bdb00d0bd7 Tyop: foresight, not forsight (FreeBSD PR/24637) 2001-01-30 00:25:30 +00:00
lukem 443a19e035 convert to using .WAIT 2001-01-09 03:13:39 +00:00
lukem de3e6adaf6 use more standard %ll_ in favour of %q_ 2001-01-04 17:24:35 +00:00
sommerfeld 83454472f9 ${PRINTOBJDIR}ify 2000-12-30 17:51:26 +00:00
mycroft 9fcf4550a2 Another one that really belongs here... 2000-12-17 10:08:08 +00:00
mycroft 34fedde795 Compress the other entries vertically. 2000-12-17 09:35:21 +00:00
mycroft 562421c4f3 Reformat one entry for vertical space. 2000-12-17 09:25:38 +00:00
mycroft c1647142f9 Yes, it's about damn time fortune(6) got some new material. 2000-12-17 09:17:51 +00:00
lukem 51ea0cba47 remove unnecessary command name after .Nm 2000-11-07 05:51:54 +00:00
mrg f601feea40 fix a bug in the call to srandom(): xor time() with getpid(), don't add them!
now fortune(6) run in an unending loop does not appear to show the same
fortunes over and over and over.
2000-10-31 13:27:56 +00:00
hubertf 42f9d6c1e4 NetBSD will put hair on a UNIX admin's chest
-- Jason R. Fink
2000-10-09 00:58:16 +00:00
mjl b1342ea8af Removed duplicate entry. Fixes FreeBSD PR/21629. 2000-09-29 00:40:40 +00:00
abs 90a84d2445 If we install limerick-o.dat, we should also install limerick-o to make it
usable.
2000-08-17 16:54:28 +00:00
abs 5b783e3f48 Split netbsd fortunes into offensive and non offensive.
Split could be considered somewhat arbitrary.
2000-08-17 16:48:52 +00:00
abs ad603791f5 NetBSD: A pmap for every occasion 2000-08-17 16:27:38 +00:00
mason a6cd58daee Corrected quote. It was totally missing its (well-known) equivalent of
a punch line.
2000-08-12 23:04:15 +00:00
ad 689c315829 Add 3 from me. 2000-07-31 11:38:21 +00:00
simonb 38a3de49cd Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.

Patches from Chris Demetriou.
2000-07-31 11:32:33 +00:00
mjl d9e9bbbcb4 After weeding out duplicate, modify entry to be mathematically
correct at least. (Yes, both were wrong. People can't integrate
nowadays anymore :)
2000-07-03 18:51:45 +00:00
mjl 217fd277fd Remove duplicate (and incorrect) entry. From Anton Berezin
<tobez@tobez.org> in FreeBSD PR/19670
2000-07-03 17:23:37 +00:00
mason caa691ec0a Offered horse brutality to a previously incorrect RHPS quote. 2000-06-30 04:04:09 +00:00
scw eaeb39f657 NetBSD: Ports to * boards. 2000-06-14 08:10:06 +00:00
jwise 7e7d991f01 Remove one of mine that really wasn't very good, and add:
NetBSD: abandon all hype, oh ye who enter here.
2000-06-07 14:04:45 +00:00
pooka c528cb8edd NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...! 2000-05-02 11:41:24 +00:00
simonb 48a5c3efa9 Don't declare 'extern opt*' getopt variables. 2000-04-14 05:58:01 +00:00
simonb 915c06c281 Greatly simplify these by using <bsd.hostprog.mk>. Should do the same
for games/hack and games/monop and a few other places, but that requires
making subdirs for the tools.  One day...
2000-04-14 04:12:18 +00:00
soren 7e6625d720 Missing word. From Paul Janzen. 2000-04-11 03:45:40 +00:00
jwise b0cbfed510 Tyop fix. 2000-04-06 02:19:23 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
jwise 3626a95b76 fix tyop 2000-02-27 05:40:36 +00:00
pooka 8ef8262b5d NetBSD: We come in peace. We offer reliability.
+ correct a typo
2000-02-15 13:56:02 +00:00
pooka e287a2d6fa NetBSD: We don't negotiate with terrorists. 2000-02-12 10:12:58 +00:00
pooka e74bc9575e Add Chris Baird's email address per his request 2000-02-10 13:10:43 +00:00
pooka 022eb906f9 Add NetBSD slogans for fortune database. 2000-02-06 11:59:29 +00:00
mycroft 615ac255bd More .mk file fallout. *sigh* 2000-01-23 22:10:52 +00:00
mycroft 58b54f196f Get the build ordering right for dependall. 2000-01-23 22:10:22 +00:00
jsm 0bd979e6bf Remove unnecessary casts, and add necessary ones for printf arguments. 2000-01-13 16:22:10 +00:00
jsm f7bce06e2e Change __GCC__ to __GNUC__. 2000-01-13 16:20:27 +00:00
jsm 993c7bf2ac Remove obsolete NO_VOID conditional. 2000-01-13 16:19:36 +00:00
simonb c3a7361d5d Don't use any NetBSD specific features (<err.h> and friends mainly
- replaiced with local die() and dieperror() routines).  Use ANSI
prototypes (no dependance on the __P() macro).  Add new fwrite_be_offt()
function which writes out a big-endian 64bit number regards of the size
of off_t on the host machine.  Remove unused unctrl() function.

Now builds correct fortune .dat files on non-NetBSD machines as well
- tested on Ultrix and Solaris (but Solaris needs -lsocket to get
htonl()).
1999-12-30 01:32:33 +00:00
simonb f6c35735cd No need to include <sys/endian.h> here - <sys/types.h> includes
<machine/endian.h> which DTRT.
1999-12-30 01:26:44 +00:00
mason 75eb02cdfc Removed someone's personal phone number, including area code, from a "if you
want a good time, call ###-###-####" fortune entry.
1999-12-11 19:13:05 +00:00
jsm 49bc28122f Fix a gcc -W warning (empty body in an else-statement). 1999-12-07 23:07:39 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
jsm 157087a683 Use macro NAMLEN rather than dirent->d_namlen, for easier portability. 1999-09-22 18:56:32 +00:00
tron b137d2d602 Remove generated file "limerick-o" in "clean" target. 1999-09-21 16:34:51 +00:00
jsm 20e3305006 Fix -Wsign-compare warnings. 1999-09-18 19:38:46 +00:00
hwr 435463f6cb Split limericks into "normal" and "offensive" ones.
Fixes PR 6202 by Matthias Grutzeck <grut@teco.edu>.
1999-09-12 10:15:46 +00:00
hwr 2abe3ab9b5 These fortunes conatain offensive language.
These were originally unamerican.{fake,real}
Part of the work on PR 6202.
1999-09-12 10:06:21 +00:00
hwr 81dda5dccb Moved to unamerican.real-o 1999-09-12 09:57:50 +00:00
hwr 8d799a73e4 Moved to unamerican.fake-o 1999-09-12 09:54:25 +00:00
jsm 18c51c04de Check for write errors in auxiliary programs used during build of games. 1999-09-10 00:18:20 +00:00
jsm 2b25de3a90 Include <time.h> in various places in the games where time() or time_t
are used.
1999-09-09 17:30:17 +00:00
simonb 0012c0940d Remove extra blank line in copyright. 1999-09-09 06:30:10 +00:00
jsm 5fb18dd9da Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
1999-09-08 21:57:16 +00:00
jsm b03d4fa882 Add `__noreturn__' and `__unused__' attributes where appropriate to
the games.

This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082.  Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
1999-09-08 21:45:25 +00:00
jsm 092d313019 Add use of `const' where appropriate to the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
1999-09-08 21:17:44 +00:00
simonb 87500c939d Use new endian-specific conversion macros - 64-bit off_t's are now
the stored the same regardess of the byte order of the generating
host.

Note in the strfile(8) man page that all fields are big-endian, not
in network byte order.
1999-08-21 07:02:46 +00:00
simonb 299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
thorpej a451d97336 Fortunes from those Unamerican Activities bumper stickers you see on
mountain bikes owned by Gen-X'ers.
1999-08-04 22:45:09 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
pk f16cf517fe typo. 1998-12-05 21:09:23 +00:00
jwise ca027085f0 Fix spelling of `Churchill' in 3 places 1998-11-20 03:35:31 +00:00
lukem b569ddabe9 don't install in /usr/share if NOSHARE is defined 1998-09-29 07:33:20 +00:00
hubertf 1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
frueauf 6d6da27a53 Correct attribution as pointed out in pr 6114 by Jim Wise. 1998-09-12 22:49:12 +00:00
veego 04afeca685 Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
christos 2fed16a1b1 Add regexp support; remove -lcompat, use err*, warn* 1998-02-04 10:16:19 +00:00
perry 2a4f7becd8 4.4BSD -> .Bx 4.4 1998-02-03 20:45:00 +00:00
lukem 43e8208cc2 use CPPFLAGS instead of CFLAGS, fix dependancies for parallel compile 1997-10-22 04:56:11 +00:00
mycroft 15de1c9fd2 Use S_IS*(), not S_IF*. 1997-10-19 17:54:18 +00:00
lukem 9f3003730a deprecate auto 1997-10-12 14:17:27 +00:00
lukem 93ada1d83c WARNSify 1997-10-11 07:59:09 +00:00
lukem 2169b302cc WARNSify, deprecate register 1997-10-11 07:48:58 +00:00
lukem 3c70a27d72 WARNSify 1997-10-10 13:04:33 +00:00
mikel b62af4ea5e don't xref obsolete regcmp(3) 1997-07-16 06:59:59 +00:00
mycroft 6e0450c70f Use proginstall:: to disable installing PROG. 1997-05-07 15:59:08 +00:00
mycroft fd8daf980e Add .MAKE to the .OBJDIR hacks, so they work with `make -n'. 1997-05-07 07:15:34 +00:00
thorpej 95aa825045 Allow this to be cross-compiled (in a manner consistent with boggle's
host-only helper programs).
1997-04-28 23:53:25 +00:00
thorpej ae4c6aad10 Go into the "strfile" subdirectory unconditionally; we let that Makefile
make it's own decisions.
1997-04-28 23:52:50 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
mikel 3a7d2a7457 eliminate mismatched quote char 1997-03-14 06:48:14 +00:00
mouse 412433b44c alternate -> alternative, per PR 2643 1997-03-08 13:26:20 +00:00
mikel 2e5a49b4b6 fix typo in Napoleon's name 1997-01-23 06:06:29 +00:00
cgd 4f6d05e9a2 Clean this up, and be more consistent:
* Have 'fake' options for all offensive fortune files (fortunes2-o and
  limerick moved to fortunes2-o.real and limerick.real via repository copy).
* build all offensive fortune data files, etc., in the same way.
* Have installation of offensive fortunes controlled by one make variable.
  To disable build/install of offensive fortunes, set
  INSTALL_OFFENSIVE_FORTUNES to anything other than "YES" on the make
  command line, in bsd.own.mk, or in /etc/mk.conf or your ${MAKECONF} file.
  (If changing the setting, you should 'make clean' here and rebuild
  the fortunes before installing.)
* Don't use variables that bsd.prog.mk thinks have certain meanings.
1996-12-23 01:14:34 +00:00
tls ba62612dc1 Oy Gevalt, incorrect meter! 1996-11-23 10:40:50 +00:00
thorpej 871c9c08af Use ${INSTALL}. 1996-10-18 02:37:51 +00:00
christos cf79e593b5 <machine/endian.h> -> <sys/types.h> 1996-10-13 00:01:05 +00:00
pk bcf752fc71 Remove duplicate (and inaccurate) citation. Update the remaining one to be
even more accurate.
1996-06-02 22:02:36 +00:00
jtc c8ddd8b92e Use tr instead of caesar to generate fortunes-o 1996-02-29 00:21:16 +00:00
christos 99fc0f40d9 Parallel make fixes 1995-10-22 21:04:42 +00:00
pk 3072291705 Correct typos noted by Mike Long; PR#1654. 1995-10-22 20:44:11 +00:00
jtc 740f05b08b fix typo: new -> knew 1995-07-17 06:23:06 +00:00
pk e2db3a63c7 Use `install -c'. 1995-06-26 21:59:39 +00:00
cgd c4816c32b3 Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd 0414a14338 clean more cruft; fix up to build the way CSRG now intends 1995-04-22 07:19:03 +00:00
cgd f93c8f50f4 kill these; no longer necessary or appropriate. 1995-04-22 07:12:19 +00:00
cgd 42fb1b9d4a merge with Lite, new RCS id conventions, etc. 1995-03-23 08:28:00 +00:00
cgd b6cfa5b154 from Lite 1995-03-21 15:48:18 +00:00
cgd c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
cgd b4da561c15 kiil bogus install -d's 1994-02-10 02:31:32 +00:00
cgd 6bfe384d92 fix 'make' biff. from Roland McGrath 1994-01-24 18:39:52 +00:00
pk be7657d720 Use .OBJDIR for auxiliary programs. 1994-01-04 21:40:31 +00:00
jtc 67a17b53b4 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 02:19:49 +00:00
jtc 8f83a67681 Link with -lcompat instead of -lgnuregex.
As soon as POSIX regular expressions are integrated into libc, -lgnuregex
will be going away.  Fortune use the old re_comp() & re_exec() regex
routines that are provided by -lcompat.
1993-11-11 01:01:21 +00:00
jtc 8e72576bc2 Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
1993-09-30 23:57:08 +00:00
jtc c63e7d82bc Drip -DNO_REGEX, Link with -lgnuregex. 1993-08-05 02:16:36 +00:00
jtc 61523efa72 Convert to -mandoc macros. 1993-08-05 02:15:58 +00:00
mycroft 8e99f20a79 Shouldn't use NOMAN here. We have a man page, even if we don't bother to
install the program anyway.
1993-08-03 21:58:55 +00:00
mycroft 52efca41cd Nuke remaining patchkit headers. 1993-08-02 18:17:24 +00:00
mycroft 53d05dab0d Makefile 1993-08-02 17:16:08 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft f6e43c3958 Use ${COPY}, not -c for install. 1993-07-18 19:17:22 +00:00
cgd a24a91d611 build datfiles at make time, not at install time 1993-04-30 05:24:57 +00:00
mycroft 02ad2c8cb7 Fix compilation error I introduced. 1993-04-20 04:23:07 +00:00
mycroft f7f4b85ce9 Cleanup for GCC 2. 1993-04-18 21:52:18 +00:00
cgd 700132ca1e datfiles need obj made, too. 1993-04-09 23:56:18 +00:00
cgd 0594fb5686 fix various install problems. 1993-04-09 09:37:17 +00:00
cgd 033149f0cc fixed makefile so it doesn't need to write to dir on install and doesn't
need symlink
1993-04-04 10:37:27 +00:00
cgd f620d7d9f6 got rid of unnecessary -lcompat and associated dependency 1993-03-23 02:44:38 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00