mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
README.linux for fortune
|
||||
========================
|
||||
|
||||
Here is one port of fortune for Linux. Alternatively, you may wish to
|
||||
use the enhanced version available from
|
||||
<ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune-mod.tar.gz>.
|
||||
|
||||
unstr is not installed by default. If you want to install it,
|
||||
uncomment the relevant lines (installation command and definition of
|
||||
fortune_unstr_DIRS) in unstr/Makefrag before doing the top level `make
|
||||
install'.
|
||||
|
||||
Offensive fortunes:
|
||||
|
||||
The "offensive" fortunes (not very offensive) are disabled by default.
|
||||
If you want the "offensive" fortunes, answer 'y' to the question when
|
||||
running configure.
|
||||
|
||||
Have fun!
|
||||
Andy
|
||||
|
||||
[ This README.linux subsequently extensively modified - JSM ]
|
||||
@@ -10919,7 +10919,7 @@ of chemical pollutant in their drinking water. That is why I pledge to
|
||||
do all that I can to protect the environment of this great nation of
|
||||
ours, and put prayer back in the schools, where it belongs. What we
|
||||
need is jobs, not empty promises. I realize I'm risking my political
|
||||
career be being so outspoken on a sensitive issue such as the MX, but
|
||||
career by being so outspoken on a sensitive issue such as the MX, but
|
||||
that's just the kind of straight-talking honest person I am, and I
|
||||
can't help it.
|
||||
-- Dave Barry, "On Presidential Politics"
|
||||
|
||||
@@ -674,7 +674,7 @@ days old. He heard that a foal and his mummy are soon parted.
|
||||
long-distance caw.
|
||||
A musical reviewer admitted he always praised the first show of a
|
||||
new theatrical season. "Who am I to stone the first cast?"
|
||||
A hard-luck actor who appeared in one coloossal disaster after another
|
||||
A hard-luck actor who appeared in one colossal disaster after another
|
||||
finally got a break, a broken leg to be exact. Someone pointed out that it's
|
||||
the first time the poor fellow's been in the same cast for more than a week.
|
||||
%
|
||||
@@ -1032,7 +1032,7 @@ with social conventions?"
|
||||
%
|
||||
A ranger was walking through the forest and encountered a hunter
|
||||
carrying a shotgun and a dead loon. "What in the world do you think you're
|
||||
doing? Don't you know that the loon is on the endagered species list?"
|
||||
doing? Don't you know that the loon is on the endangered species list?"
|
||||
Instead of answering, the hunter showed the ranger his game bag,
|
||||
which contained twelve more loons.
|
||||
"Why would you shoot loons?", the ranger asked.
|
||||
@@ -1110,7 +1110,7 @@ secrets... so naturally British electronics leak smoke.
|
||||
-- Jack Banton, PCC Automotive Electrical School
|
||||
%
|
||||
A shy teenage boy finally worked up the nerve to give a gift to
|
||||
Maddona, a young puppy. It hitched its waggin' to a star.
|
||||
Madonna, a young puppy. It hitched its waggin' to a star.
|
||||
A girl spent a couple hours on the phone talking to her two best
|
||||
friends, Maureen Jones, and Maureen Brown. When asked by her father why she
|
||||
had been on the phone so long, she responded "I heard a funny story today
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Makefrag - makefile fragment for fortune/fortune
|
||||
#
|
||||
# Copyright (c) 1997, 1998 Joseph Samuel Myers.
|
||||
# Copyright (c) 1997, 1998, 2004 Joseph Samuel Myers.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@@ -26,7 +26,7 @@
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
|
||||
fortune_fortune_DEFS := -DHAVE_REGCOMP
|
||||
fortune_fortune_DEFS := $(GETPROGNAME_DEFS) -DHAVE_REGCOMP
|
||||
fortune_fortune_DIRS := $(GAMESDIR) $(MAN6DIR)
|
||||
fortune_fortune_INCS := -Ifortune/strfile
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ fortune 50% funny 50% not
|
||||
.Ed
|
||||
.Sh FILES
|
||||
.Bl -tag -width Pa -compact
|
||||
.It Pa @sharedir@/fortunes
|
||||
.It Pa @fortune_dir@
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr regex 3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fortune.c,v 1.39 2003/08/07 09:37:14 agc Exp $ */
|
||||
/* $NetBSD: fortune.c,v 1.43 2004/01/27 20:30:29 jsm Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1993
|
||||
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: fortune.c,v 1.39 2003/08/07 09:37:14 agc Exp $");
|
||||
__RCSID("$NetBSD: fortune.c,v 1.43 2004/01/27 20:30:29 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -126,46 +126,46 @@ FILEDESC *Fortfile; /* Fortune file to use */
|
||||
|
||||
STRFILE Noprob_tbl; /* sum of data for all no prob files */
|
||||
|
||||
int add_dir __P((FILEDESC *));
|
||||
int add_file __P((int,
|
||||
const char *, const char *, FILEDESC **, FILEDESC **, FILEDESC *));
|
||||
void all_forts __P((FILEDESC *, const char *));
|
||||
char *copy __P((const char *, u_int));
|
||||
void rot13 __P((char *line, int len));
|
||||
void display __P((FILEDESC *));
|
||||
void do_free __P((void *));
|
||||
void *do_malloc __P((u_int));
|
||||
int form_file_list __P((char **, int));
|
||||
int fortlen __P((void));
|
||||
void get_fort __P((void));
|
||||
void get_pos __P((FILEDESC *));
|
||||
void get_tbl __P((FILEDESC *));
|
||||
void getargs __P((int, char *[]));
|
||||
void init_prob __P((void));
|
||||
int is_dir __P((const char *));
|
||||
int is_fortfile __P((const char *, char **, char **, int));
|
||||
int is_off_name __P((const char *));
|
||||
int main __P((int, char *[]));
|
||||
int max __P((int, int));
|
||||
int add_dir(FILEDESC *);
|
||||
int add_file(int,
|
||||
const char *, const char *, FILEDESC **, FILEDESC **, FILEDESC *);
|
||||
void all_forts(FILEDESC *, const char *);
|
||||
char *copy(const char *, u_int);
|
||||
void rot13(char *line, int len);
|
||||
void display(FILEDESC *);
|
||||
void do_free(void *);
|
||||
void *do_malloc(u_int);
|
||||
int form_file_list(char **, int);
|
||||
int fortlen(void);
|
||||
void get_fort(void);
|
||||
void get_pos(FILEDESC *);
|
||||
void get_tbl(FILEDESC *);
|
||||
void getargs(int, char *[]);
|
||||
void init_prob(void);
|
||||
int is_dir(const char *);
|
||||
int is_fortfile(const char *, char **, char **, int);
|
||||
int is_off_name(const char *);
|
||||
int main(int, char *[]);
|
||||
int max(int, int);
|
||||
FILEDESC *
|
||||
new_fp __P((void));
|
||||
char *off_name __P((const char *));
|
||||
void open_dat __P((FILEDESC *));
|
||||
void open_fp __P((FILEDESC *));
|
||||
new_fp(void);
|
||||
char *off_name(const char *);
|
||||
void open_dat(FILEDESC *);
|
||||
void open_fp(FILEDESC *);
|
||||
FILEDESC *
|
||||
pick_child __P((FILEDESC *));
|
||||
void print_file_list __P((void));
|
||||
void print_list __P((FILEDESC *, int));
|
||||
void sum_noprobs __P((FILEDESC *));
|
||||
void sum_tbl __P((STRFILE *, STRFILE *));
|
||||
void usage __P((void)) __attribute__((__noreturn__));
|
||||
void zero_tbl __P((STRFILE *));
|
||||
pick_child(FILEDESC *);
|
||||
void print_file_list(void);
|
||||
void print_list(FILEDESC *, int);
|
||||
void sum_noprobs(FILEDESC *);
|
||||
void sum_tbl(STRFILE *, STRFILE *);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void zero_tbl(STRFILE *);
|
||||
|
||||
#ifndef NO_REGEX
|
||||
char *conv_pat __P((char *));
|
||||
int find_matches __P((void));
|
||||
void matches_in_list __P((FILEDESC *));
|
||||
int maxlen_in_list __P((FILEDESC *));
|
||||
char *conv_pat(char *);
|
||||
int find_matches(void);
|
||||
void matches_in_list(FILEDESC *);
|
||||
int maxlen_in_list(FILEDESC *);
|
||||
#endif
|
||||
|
||||
#ifndef NO_REGEX
|
||||
@@ -210,14 +210,12 @@ char Re_error[1024];
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (defined(__linux__) && !defined(__GLIBC__)) || (defined(__GLIBC__) && !defined(_DIRENT_HAVE_D_NAMLEN))
|
||||
#if (defined(__linux__) && !defined(__GLIBC__)) || (defined(__GLIBC__) && !defined(_DIRENT_HAVE_D_NAMLEN)) || defined(__CYGWIN__)
|
||||
#define NAMLEN(d) (strlen((d)->d_name))
|
||||
#else
|
||||
#define NAMLEN(d) ((d)->d_namlen)
|
||||
#endif
|
||||
|
||||
extern char *__progname;
|
||||
|
||||
int
|
||||
main(ac, av)
|
||||
int ac;
|
||||
@@ -1403,7 +1401,8 @@ matches_in_list(list)
|
||||
void
|
||||
usage()
|
||||
{
|
||||
(void) fprintf(stderr, "Usage: %s [-ae", __progname);
|
||||
|
||||
(void) fprintf(stderr, "Usage: %s [-ae", getprogname());
|
||||
#ifdef DEBUG
|
||||
(void) fprintf(stderr, "D");
|
||||
#endif /* DEBUG */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: unstr.c,v 1.8 2003/08/07 09:37:15 agc Exp $ */
|
||||
/* $NetBSD: unstr.c,v 1.11 2004/02/08 22:23:50 jsm Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: unstr.c,v 1.8 2003/08/07 09:37:15 agc Exp $");
|
||||
__RCSID("$NetBSD: unstr.c,v 1.11 2004/02/08 22:23:50 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -79,9 +79,9 @@ char *Infile, /* name of input file */
|
||||
|
||||
FILE *Inf, *Dataf;
|
||||
|
||||
void getargs __P((char *[]));
|
||||
int main __P((int, char *[]));
|
||||
void order_unstr __P((STRFILE *));
|
||||
void getargs(char *[]);
|
||||
int main(int, char *[]);
|
||||
void order_unstr(STRFILE *);
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user