home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 7 Games / 07-Games.zip / fortune4.zip / README.txt < prev    next >
Text File  |  1997-06-05  |  3KB  |  51 lines

  1. This is a port of the same fortune program which is distributed with RedHat
  2. Linux.  I made only very minor changes to the source.  Specifically, I added a
  3. few #include statments, explicitly specified to the compiler that certain
  4. libraries be linked (the '-l' statements in the makefile), and placed some
  5. additional close() and open() functions in the code to make sure that too many
  6. files were not simultaneously open.  Also, I altered the regular expression
  7. handling to use the library provided with EMX (hence the -lregexp in the
  8. makefile, and some slightly altered #defines in the source).
  9.  
  10. This port works in an xterm under XFree86/OS2.  It is also well-used by the
  11. 'marquee' and 'nose' screen savers under XFree, at least on my system.
  12.  
  13. I presume that you unzipped this into a temporary directory.  The absolute
  14. fastest way to make this work is to do a "move unix \", and then copy
  15. fortune.exe to someplace in your path.
  16.  
  17. I include the file fortune.c, which is not the entirety of the distribution I
  18. used.  For the full attributions, credits, READMEs, etc., you probably ought to
  19. download the full source yourself.  I got it from
  20.  
  21. <http://sunsite.unc.edu/pub/Linux/games/amusements/fortune-mod.tar.gz>
  22.  
  23. I include fortune.c because it is the only file I changed, and because you need
  24. to recompile it if you want to change the default location of the fortune files.
  25. Needed at compile time are also the files strfile.h and pathnames.h, both of
  26. which are included as well.  I only know that the files, as provided, will 
  27. compile under emx/gcc on my system, and presumably yours as well.  I know 
  28. nothing about using a different compiler.
  29.  
  30. The default location of the fortune files is specified at compile time in the
  31. file pathnames.h, which should be self-explanatory.  The included makefile has
  32. the necessary compiler switches (and some unnecessary ones).  Also included is
  33. fortune.6, which is a man page.  If you haven't gotten the port of 'man', you
  34. might want to, or you can page through the manfile in ASCII, which is readable
  35. but not pretty.
  36.  
  37. If you want to create your own fortune files, you either have to port the
  38. utility programs which came with the distribution (I got them to compile but
  39. they were buggy on OS/2 and I didn't want to hack them), or find a Linux box
  40. (this is what I did).  However, once created, the same files should work with
  41. both the Linux version and this version of the program (they work for me).
  42.  
  43. I have done only minimal testing, but everything seems to work as it should.  I
  44. use this port on my system, and I haven't seen any nasty behavior from it.
  45. However, as all the other disclaimers mention, everything is provided AS-IS, and
  46. you use it at your own risk.  I am not liable for anything good or bad 
  47. that happens to you as a result of using this port.  Although I personally see 
  48. absolutely no reason why this program should format your hard drive, if it does 
  49. don't sue me. If you're offended by the fortunes, don't sue me.  If you're 
  50. having a bad day (or a good one), don't sue me.  You get the point.
  51.