💾 Archived View for mirrors.apple2.org.za › archive › apple.cabi.net › Utilities › NewFortYow.SHK.tx… captured on 2024-02-05 at 11:45:08.

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

fortune and yow  -- ported by Greg Thompson

  hi there.  i ported this pair of fun utils a few years ago.  i pretty
much just did a straight port.  i made 'em compile and run.  recently,
someone posted a really bad version of fortune to
comp.sys.apple2.binaries.  i decided i should toss the real thing (mine)
up there.  upon looking at the code, i realized that the guy who
originally wrote these two did a really bad job.  they recursed (chowing
stack space).  they had massive local variables (chowing stack space). 
the i/o was amazingly inefficient.  etc, etc, etc.  looked like
someone's first c programs.

  anyway, i re-wrote the bulk of 'em (not too much to do, really). 
they're now good.  they work.  in fact, they should work under any
shell.  they expect to find their data files in or near :usr:games:lib.  yow
looks for yow.lines by default (use -f to specify your own quotes file). 
fortune looks for its files in the directory :usr:games:lib:fort.dir.  yow.lines
is human readable, and it's quite trivial to create your own.  the fortune
files aren't readable, and fortune's hardcoded to only search for how ever
many are there at the moment.  so there.

  these are both pretty quick-n-dirty.  nothing fancy.  if you want
something fancy, don't ask.  i don't have time for it (sorry).  just
doing this much took me a few months (although probably no more than 3
hours in front of my gs total, but i hardly spend any time on this
machine anymore...).

  anyway, hope you all enjoy these.  if there are bugs, i'll fix 'em. 
just let me know.

  10/7/94 -
  since i got some hate-mail on the first release of these (well, not
really hate mail, just requests for better placement of the data files),
i'm releasing these new (improved) versions.  they both initially search
in :usr:games:lib for their files (see above) instead of 6:, which was
just plain stupid (which drugs were i on?).  plus, if you don't like
those locations, set YOWDIR to the directory in which yow.lines lives,
and FORTDIR to the directory where all the fortune files live, and
they'll get found.

		-greg
		 gregt@visix.com

i'm caffeinated and incorporated, cog in the wheel of the machinery.
naked aggressive, nightly newsish, and stress-related.
on the couch i'm home plate.  i'm crack cocaine and cholesterol.
i play hard ball, i mean business, and i've got a hard-on for hate.
what is a god and whose is this country when it's only city, me, and mine?
i see my life flash before me when i try to sleep.
i am product.
		-deconstruction "get at 'em"